Documentation ¶ Index ¶ type Conn func (c *Conn) Release() type DB func Open(dbPath string, opts ...Option) (*DB, error) func (db *DB) Acquire() (*Conn, error) func (db *DB) Close() error func (db *DB) Exec(ctx context.Context, sql string, args ...interface{}) (*Result, error) func (db *DB) Query(ctx context.Context, sql string, args ...interface{}) (*Rows, error) type Option type Result type Rows Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Conn ¶ type Conn struct { *sql.DB // contains filtered or unexported fields } func (*Conn) Release ¶ func (c *Conn) Release() type DB ¶ type DB struct { // contains filtered or unexported fields } func Open ¶ func Open(dbPath string, opts ...Option) (*DB, error) func (*DB) Acquire ¶ func (db *DB) Acquire() (*Conn, error) func (*DB) Close ¶ func (db *DB) Close() error func (*DB) Exec ¶ func (db *DB) Exec(ctx context.Context, sql string, args ...interface{}) (*Result, error) func (*DB) Query ¶ func (db *DB) Query(ctx context.Context, sql string, args ...interface{}) (*Rows, error) type Option ¶ type Option struct { NumConn int PoolTimeout time.Duration } type Result ¶ type Result struct { sql.Result } type Rows ¶ type Rows struct { *sql.Rows } Source Files ¶ View all Source files conn.go db.go result.go rows.go Click to show internal directories. Click to hide internal directories.