Skip to content

kronusaturn/lmdb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

118 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LMDB

Build Status

Common Lisp bindings to LMDB.

Overview

LMDB is really fast. Here's how much faster SQLite got when they ported the B-tree code to use LMDB.

This is implemented as a wrapper over the liblmdb library.

Usage

;; Create an environment
(let ((env (lmdb:make-environment #p"/some/directory/")))
  (lmdb:with-environment (env)
    ;; Create a transaction
    (let ((txn (lmdb:make-transaction env)))
      (lmdb:begin-transaction txn)
      ;; Create a database access object
      (let ((db (lmdb:make-database txn "db")))
        (lmdb:with-database (db)
          (lmdb:put db 1 2)
          (let ((vec (lmdb:get db 1)))
            (print vec)))))))

License

Copyright (c) 2015–2016 Fernando Borretti

Licensed under the MIT License.

About

LMDB bindings for Common Lisp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Common Lisp 100.0%