mdb_dbi_flags function

int mdb_dbi_flags(
  1. Pointer<MDB_txn> txn,
  2. int dbi,
  3. Pointer<UnsignedInt> flags
)

@brief Retrieve the DB flags for a database handle.

@paramin txn A transaction handle returned by #mdb_txn_begin() @paramin dbi A database handle returned by #mdb_dbi_open() @paramout flags Address where the flags will be returned. @return A non-zero error value on failure and 0 on success.

Implementation

@ffi.FfiNative<
    ffi.Int Function(ffi.Pointer<MDB_txn>, MDB_dbi,
        ffi.Pointer<ffi.UnsignedInt>)>('mdb_dbi_flags')
external int mdb_dbi_flags(
  ffi.Pointer<MDB_txn> txn,
  int dbi,
  ffi.Pointer<ffi.UnsignedInt> flags,
);