func (txn *Txn) Drop(dbi DBI, del int) error { ret := C.mdb_drop(txn._txn, C.MDB_dbi(dbi), C.int(del)) if ret != SUCCESS { return Errno(ret) } return nil }
func (txn *Txn) Drop(dbi DBI, del int) error { ret := C.mdb_drop(txn._txn, C.MDB_dbi(dbi), C.int(del)) return errno(ret) }
// Drop empties the database if del is false. Drop deletes and closes the // database if del is true. // // See mdb_drop. func (txn *Txn) Drop(dbi DBI, del bool) error { ret := C.mdb_drop(txn._txn, C.MDB_dbi(dbi), cbool(del)) return operrno("mdb_drop", ret) }