From 736ba35cf030f317902247b3209a8fe6d8d8740e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Mar 2025 20:04:12 +0800 Subject: [PATCH] Add common types --- lmdb/types.ha | 16 ++++++++++++++++ diff --git a/lmdb/types.ha b/lmdb/types.ha new file mode 100644 index 0000000000000000000000000000000000000000..0ff1ddd1686851f70b8355e140a4c8be30ed2066 --- /dev/null +++ b/lmdb/types.ha @@ -0,0 +1,16 @@ +use lmdb::ffi; + +// Opaque structure for a database environment. +// +// A DB environment supports multiple databases, all residing in the same +// shared-memory map. +export type env = ffi::env; + +// A handle for an individual database in the DB environment. +export type dbi = ffi::dbi; + +// Opaque structure for a transaction handle. +export type txn = ffi::txn; + +// Opaque structure for navigating through a database. +export type cursor = ffi::cursor; -- 2.48.1