Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
The SQL database.
func (*DB) CommitTransaction ¶
CommitTransaction commits all changes made since StartTraction was called.
func (*DB) Execute ¶
Execute executes the given sqlite statement, of a type that doesn't return rows.
func (*DB) Query ¶
func (db *DB) Query(query string) (RowResults, error)
Query runs the supplied query against the sqlite database. It returns a slice of RowResults.
func (*DB) RollbackTransaction ¶
RollbackTransaction aborts the transaction. No statement issued since StartTransaction was called will take effect.
func (*DB) StartTransaction ¶
StartTransaction starts an explicit transaction.
type RowResults ¶
Click to show internal directories.
Click to hide internal directories.