1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use crateDatabaseFlags;
/// A handle to an individual database in an environment.
///
/// A database handle denotes the name and parameters of a database in an
/// environment.
///
/// `Database` is a simple data container holding the database handle index
/// (dbi) and its flags. It does not own any resources and can be freely
/// copied.
///
/// # Lifetime
///
/// The database handle is only valid within the lifetime of the environment
/// that created it. Users must ensure that `Database` instances are not used
/// after the environment has been closed.