Documentation ¶
Index ¶
Constants ¶
View Source
const (
DbFilename = "ql.db"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) Do ¶
Do Opens the db, executes DoTx and then Closes the DB To support a multiprocess and multigoroutine model on a single file access database like ql there's the need to exlusively lock, open, close, unlock the db for every transaction. For this reason every db transaction should be fast to not block other processes/goroutines.
Click to show internal directories.
Click to hide internal directories.