Exemplo n.º 1
0
Arquivo: db.go Projeto: gmuch/gmuch
// Close closes the database.
func (db *DB) Close() error {
	return (*cStruct)(db).doClose(func() error {
		return statusErr(C.notmuch_database_destroy(db.toC()))
	})
}
Exemplo n.º 2
0
/* Close the given notmuch database, freeing all associated
 * resources. See notmuch_database_open. */
func (self *Database) Close() {
	C.notmuch_database_destroy(self.db)
}
Exemplo n.º 3
0
/* Close the given notmuch database, freeing all associated
 * resources. See notmuch_database_open. */
func (self *Database) Close() Status {
	return Status(C.notmuch_database_destroy(self.db))
}