You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/index.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,8 @@
4
4
Memory-Mapped Database.*
5
5
6
6
LMDB is an embedded, memory-mapped, ACID key-value store developed by
7
-
Symas for OpenLDAP. It is small, fast, and persists to disk while reading
8
-
at near in-memory speeds — limited only by the size of the virtual address
9
-
space.
7
+
Symas for OpenLDAP. It persists to disk while reading at near in-memory
8
+
speeds, limited only by the size of the virtual address space.
10
9
11
10
```julia
12
11
using Pkg; Pkg.add("LMDB")
@@ -18,16 +17,16 @@ LMDB.jl exposes the same database through three surfaces:
18
17
19
18
| Surface | What it offers | When to use |
20
19
|---------|----------------|-------------|
21
-
|**High-level interface**|`LMDBDict <: AbstractDict{K,V}`| When you want a persistent `Dict`. |
22
-
|**Julia wrappers**|`Environment`, `Transaction`, `DBI`, `Cursor`| When you want explicit transactions and cursors with Julia-shaped wrappers. |
23
-
|**C API**|`LMDB.mdb_*`, `LMDB.MDB_*`| Raw `ccall` bindings and status-code constants, for custom data layouts or when you want to skip allocations on hot paths. |
20
+
| High-level interface |`LMDBDict <: AbstractDict{K,V}`| When you want a persistent `Dict`. |
21
+
| Julia wrappers |`Environment`, `Transaction`, `DBI`, `Cursor`| When you want explicit transactions and cursors with Julia-shaped wrappers. |
22
+
| C API |`LMDB.mdb_*`, `LMDB.MDB_*`| Raw `ccall` bindings and status-code constants, for custom data layouts or when you want to skip allocations on hot paths. |
24
23
25
24
`MDBValue`, `MDBArg`, and the [`MDBValueIO`](@ref LMDB.MDBValueIO)
26
25
type sit between the C API and the Julia wrappers. `MDBValueIO` is an
27
26
`IO` view over `MDB_val`; defining `Base.read(io, T)` on it is how you
28
27
teach the typed reads about a custom value type.
29
28
30
-
The Usage section starts simple and gets more involved:[Essentials](@ref)
29
+
The Usage section starts simple and gets more involved.[Essentials](@ref)
31
30
has a working example, [Dictionary interface](@ref) covers `LMDBDict`,
32
31
and [Environments](@ref), [Transactions](@ref), [Databases](@ref),
33
32
[Cursors](@ref), and [Duplicate-sort databases](@ref) cover the wrappers.
0 commit comments