Exemple #1
0
// Closes the database and releases all associated resources.
func (d *Database) Close() {
	C.gdbm_close(d.dbf)
}
Exemple #2
0
// Closes a database's internal file pointer.
func (db *Database) Close() {
	C.gdbm_close(db.dbf)
}
Exemple #3
0
func (d *gdbm) Close() {
	C.gdbm_close(d.dbf)
	if d.closer != nil {
		d.closer()
	}
}