---
name: "mdb_dbi_open"
section: "3"
platform: "linux"
package: "lmdb-doc"
version: "0.9.31-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mdb_dbi_open"
---

# mdb\_dbi\_open(3)

Database Flags

## NAME

mdb\_dbi\_open - Database Flags

## SYNOPSIS

### Macros

\#define **MDB\_REVERSEKEY**   0x02\
 \#define **MDB\_DUPSORT**   0x04\
 \#define **MDB\_INTEGERKEY**   0x08\
 \#define **MDB\_DUPFIXED**   0x10\
 \#define **MDB\_INTEGERDUP**   0x20\
 \#define **MDB\_REVERSEDUP**   0x40\
 \#define **MDB\_CREATE**   0x40000\

## Detailed Description

## Macro Definition Documentation

### #define MDB\_REVERSEKEY 0x02

use reverse string keys

### #define MDB\_DUPSORT 0x04

use sorted duplicates

### #define MDB\_INTEGERKEY 0x08

numeric keys in native byte order: either unsigned int or size\_t. The keys must all be of the same size.

### #define MDB\_DUPFIXED 0x10

with **MDB\_DUPSORT**, sorted dup items have fixed size

### #define MDB\_INTEGERDUP 0x20

with **MDB\_DUPSORT**, dups are **MDB\_INTEGERKEY**-style integers

### #define MDB\_REVERSEDUP 0x40

with **MDB\_DUPSORT**, use reverse string dups

### #define MDB\_CREATE 0x40000

create DB if not already existing

## Author

Generated automatically by Doxygen for LMDB from the source code.
