Example #1
0
// Synchronizes all pending database changes to the disk. TODO: note this is
// only needed in FAST mode, and FAST mode needs implemented!
func (db *Database) Sync() {
	C.gdbm_sync(db.dbf)
}
Example #2
0
// Synchronizes the database to disk. Sync will only return once the database has been
// physically written to the disk.
func (d *Database) Sync() {
	C.gdbm_sync(d.dbf)
}