Berkley DB CFFI-Bindings

Databases 

(defmethod+ ("db_get_dbname" db-dbname) :error-int
  (db :pointer :class (db db-handle))
  (filenamemap :out :string)
  (dbnamep :out :string))
(defmethod+ ("db_remove" db-remove) :int
  (db :pointer :class (db db-handle))
  (dbfile :string)
  (dbname :string)
  (flags :uint32 :const 0))
(defmethod+ ("db_rename" db-rename) :int
  (db :pointer :class (db db-handle))
  (dbfile :string)
  (dbname :string)
  (newname :string)
  (flags :uint32 :const 0))
(defmethod+ ("db_truncate" db-truncate) :int
  (db :pointer :class (db db-handle))
  (txn :pointer :key :class txn-handle)
  (countp :out :uint32)
  (flags :uint32 :const 0))
(defmethod+ ("db_sync" db-sync) :int
  (db :pointer :class (db db-handle))
  (flags :uint32 :const 0))