Documentation
¶
Overview ¶
Package pool provides access to SQLite database connections.
It should be used only by the metadata package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool provides access to SQLite database connections.
func (*Pool) Close ¶
func (p *Pool) Close()
Close closes all databases in the pool and frees all resources.
func (*Pool) Drop ¶
Drop closes and removes a database by name.
It does nothing if the database does not exist.
Returned boolean value indicates whether the database was removed.
func (*Pool) GetExisting ¶
GetExisting returns an existing database connection by name, or nil.
func (*Pool) GetOrCreate ¶
GetOrCreate returns an existing database connection by name, or creates a new one.
Returned boolean value indicates whether the connection was created.
Click to show internal directories.
Click to hide internal directories.