aboutsummaryrefslogtreecommitdiff
path: root/lmdb.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-03-21 16:38:07 +0000
committerthe lemons <citrons@mondecitronne.com>2023-04-04 21:48:59 -0500
commit241690fe5733e758166d8fcd52acaa5f2e505cb0 (patch)
tree9e6d02e83bcfff3403411bf79c2275c7e5808e34 /lmdb.c
parentba9787994770dab80403ee21539bd5bbba912d47 (diff)
add lmdb.pairs() for iteration on lua versions without __pairs metamethod
also fix minor formatting error in readme
Diffstat (limited to 'lmdb.c')
-rw-r--r--lmdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lmdb.c b/lmdb.c
index 03c696f..a1c4e8e 100644
--- a/lmdb.c
+++ b/lmdb.c
@@ -361,6 +361,7 @@ static const struct luaL_Reg lmdb[] = {
{"open", env_open},
{"version", version},
{"next", db_next},
+ {"pairs",db_pairs},
{NULL, NULL},
};