Documentation ¶
Index ¶
- Variables
- func Terminate(sql string) string
- type Conn
- func (c Conn) BusyTimeout(d time.Duration)
- func (c Conn) Changes() int
- func (c *Conn) Close() error
- func (c Conn) Exec(sql string, args ...any) error
- func (c Conn) ExecB(sql []byte, args ...any) error
- func (c Conn) ExecTerminated(sql []byte) error
- func (c Conn) LastInsertRowID() int
- func (c Conn) MustExec(sql string, args ...any)
- func (c Conn) Prepare(sql []byte, args ...any) (*Stmt, error)
- func (c Conn) Row(sql string, args ...any) Row
- func (c Conn) RowB(sql []byte, args ...any) Row
- func (c Conn) Rows(sql string, args ...any) Rows
- func (c Conn) RowsB(sql []byte, args ...any) Rows
- func (c Conn) Transaction(f func() error) error
- type Error
- type Option
- type PrepareError
- type RawBytes
- type Row
- type Rows
- type Scanner
- type Stmt
- func (s *Stmt) Bind(args ...interface{}) error
- func (s *Stmt) ClearBindings() error
- func (s *Stmt) Close() error
- func (s *Stmt) ColumnBytes(i int) ([]byte, error)
- func (s *Stmt) ColumnDouble(i int) float64
- func (s *Stmt) ColumnInt(i int) int
- func (s *Stmt) ColumnInt64(i int) int64
- func (s *Stmt) ColumnNames() []string
- func (s *Stmt) ColumnRawBytes(i int) (RawBytes, error)
- func (s *Stmt) ColumnText(i int) (string, error)
- func (s *Stmt) ColumnTypes() []byte
- func (s *Stmt) Exec(args ...interface{}) error
- func (s *Stmt) Map() (map[string]any, error)
- func (s *Stmt) MapInto(m map[string]any) error
- func (s *Stmt) Reset() error
- func (s *Stmt) Row(dst ...interface{}) (bool, error)
- func (s *Stmt) Scan(dst ...interface{}) error
- func (s *Stmt) Step() (bool, error)
- func (s *Stmt) StepToCompletion() error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoRows = errors.New("no rows in result set")
)
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (Conn) BusyTimeout ¶
func (Conn) ExecTerminated ¶
func (Conn) LastInsertRowID ¶
func (Conn) Transaction ¶
type PrepareError ¶
type PrepareError struct {
// contains filtered or unexported fields
}
func (PrepareError) Error ¶
func (err PrepareError) Error() string
func (PrepareError) Unwrap ¶
func (e PrepareError) Unwrap() error
type RawBytes ¶
type RawBytes []byte
When reading values into a RawByte, the slice is owned by sqlite and will only be valid until the next call on the statement is made.
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func (*Stmt) ClearBindings ¶
func (*Stmt) ColumnDouble ¶
func (*Stmt) ColumnInt64 ¶
func (*Stmt) ColumnNames ¶
func (*Stmt) ColumnTypes ¶
func (*Stmt) StepToCompletion ¶
Click to show internal directories.
Click to hide internal directories.