Documentation ¶
Overview ¶
Package db represents API for database operations.
Index ¶
Constants ¶
View Source
const SqliteInMemory = ":memory:"
SqliteInMemory is a special string to use in-memory database. @see https://www.sqlite.org/inmemorydb.html
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB database.
func NewFromSqlite ¶
NewFromSqlite creates a new instance of DB based on SQLite database.
func NewFromSqliteInMemory ¶
NewFromSqliteInMemory creates a new instance of DB based on SQLite in-memory database.
Click to show internal directories.
Click to hide internal directories.