aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-03-24 22:04:17 +0000
committerthe lemons <citrons@mondecitronne.com>2023-04-04 21:49:26 -0500
commitd27bb860ea5d3edb59b78413325102104a24ce1e (patch)
tree1e9972f9796d4ad2eb029790a8873da7bd3d67c1 /README.md
parent241690fe5733e758166d8fcd52acaa5f2e505cb0 (diff)
add mapsize option
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index b4db243..7f4aa46 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,7 @@ create a new environment handle and open the database at the `path`. returns the
`opt` is an optional table of options:
* `maxdbs`: number: the maximum number of databases in the environment. must be set if multiple databases will be used.
+* `mapsize`: number: the memory map size used for this environment. this is also the maximum size of the database. default: 1GiB (`1024^3`).
* `rdonly`: boolean: open the environment in read-only mode.
* `nosubdir`: boolean: the `path` is used for the database file itself and not its containing directory.
* `nosync`: boolean: don't flush buffers to disk when committing.