Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clear ¶
Clears any cached open/close errors. Returns an error if the database is currently open.
func Close ¶
Closes the specified database (if this is the last reference to it). If a previous Close returned an error, subsequent Closes will continue to return the error until either Open() or Clear() is called.
func Open ¶
Returns the specified database, opening it if necessary. If opening the database fails, this function will return an error, and will not re-try opening the database unless you Clear() it.
The returned database is ref-counted; you must call Close() with the same driver/path combo to balance every successful Open(). You should not call Close() if the Open() failed.
Types ¶
This section is empty.