Documentation ¶
Index ¶
- Constants
- type DB
- func (db *DB) Close() error
- func (db *DB) DoTx(ctx context.Context, f func(context.Context, *Tx) error) error
- func (db *DB) Exec(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (db *DB) Query(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- func (db *DB) QueryRow(ctx context.Context, query string, args ...any) *sql.Row
- func (db *DB) Tx(ctx context.Context) (*Tx, error)
- type FS
- type Tx
Constants ¶
View Source
const ( // Pragma is a set of default commands used to modify the operation of the SQLite. // // - JOURNAL MODE = WAL // - BUSY TIMEOUT = 5000 // - SYNCHRONOUS = NORMAL // - CACHE SIZE = 1000000000 // - FOREIGN KEYS = TRUE // - TXLOCK = IMMEDIATE // - TEMP STORE = MEMORY // - MMAP SIZE = 3000000000 PRAGMA = "" /* 156-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB
func (*DB) Exec ¶
Exec executes a query without returning any rows. The args are for any placeholder parameters in the query.
func (*DB) Query ¶
Query executes a query that returns rows, typically a SELECT. The args are for any placeholder parameters in the query.
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx
func (*Tx) Exec ¶
Exec executes a query without returning any rows. The args are for any placeholder parameters in the query.
func (*Tx) Query ¶
Query executes a query that returns rows, typically a SELECT. The args are for any placeholder parameters in the query.
Click to show internal directories.
Click to hide internal directories.