Berkley DB CFFI-Bindings

Development files/Trash (Or what's not implemented yet) 

Not yet supported/implemented Bindings 

(defcfun ("db_get_transactional" db_get_transactional) :int
  (db :pointer))
(defcfun ("db_pget" db_pget) :int
  (db :pointer)
  (txn :pointer)
  (key :pointer)
  (pkey :pointer)
  (data :pointer)
  (flags :pointer))
(defcfun ("db_cursor_pget" db_cursor_pget) :int
  (cursor :pointer)
  (key :pointer)
  (pkey :pointer)
  (data :pointer)
  (flags :pointer))
(defcfun ("db_set_errcall" db_set_errcall) :void
  (db :pointer)
  (db_errcall_fcn :pointer))
(defcfun "db_set_errpfx" :void
  (db :pointer)
  (errpfx :string))
(defcfun* ("db_get_errpfx" db-get-errpfx) :void
  (db :pointer)
  (errpfx :out :string))
(defcfun ("db_env_set_errcall" db_env_set_errcall) :void
  (db :pointer)
  (db_errcall_fcn :pointer))
(defcfun "db_env_set_errpfx" :void
  (db :pointer)
  (errpfx :string))
(defcfun+ ("db_env_get_errpfx" db-env-get-errpfx) :void
  (db :pointer)
  (errpfx :out :string))
(defcfun ("db_env_txn_recover" db_env_txn_recover) :int
  (dbenv :pointer)
  (preplist :pointer)
  (count :long)
  (ret :pointer)
  (flags :pointer))
(defcfun ("db_env_log_archive" db_env_log_archive) :int
  (dbenv :pointer)
  (listp :pointer)
  (flags :pointer))
(defcfun ("db_env_log_flush" db_env_log_flush) :int
  (dbenv :pointer)
  (lsn :pointer))

Not yet supported/implemented Constants/Flags 

(defcenum db_lockmode_t
	(:DB_LOCK_NG 0)
	(:DB_LOCK_READ 1)
	(:DB_LOCK_WRITE 2)
	(:DB_LOCK_WAIT 3)
	(:DB_LOCK_IWRITE 4)
	(:DB_LOCK_IREAD 5)
	(:DB_LOCK_IWR 6)
	(:DB_LOCK_DIRTY 7)
	(:DB_LOCK_WWRITE 8))
(defcenum db_lockop_t
	(:DB_LOCK_DUMP 0)
	(:DB_LOCK_GET 1)
	(:DB_LOCK_GET_TIMEOUT 2)
	(:DB_LOCK_INHERIT 3)
	(:DB_LOCK_PUT 4)
	(:DB_LOCK_PUT_ALL 5)
	(:DB_LOCK_PUT_OBJ 6)
	(:DB_LOCK_PUT_READ 7)
	(:DB_LOCK_TIMEOUT 8)
	(:DB_LOCK_TRADE 9)
	(:DB_LOCK_UPGRADE_WRITE 10))
(defcenum db_status_t
	(:DB_LSTAT_ABORTED 1)
	(:DB_LSTAT_EXPIRED 2)
	(:DB_LSTAT_FREE 3)
	(:DB_LSTAT_HELD 4)
	(:DB_LSTAT_NOTEXIST 5)
	(:DB_LSTAT_PENDING 6)
	(:DB_LSTAT_WAITING 7))