Documentation ¶
Index ¶
- Constants
- type Backup
- type ColumnType
- type DB
- func (db *DB) Close() error
- func (db *DB) Exec(sql string) error
- func (db *DB) Execf(format string, a ...any) error
- func (db *DB) Key(key []byte) error
- func (db *DB) KeyDatabase(dbName string, key []byte) error
- func (db *DB) Prepare(sql string) (*Stmt, string, error)
- func (db *DB) Rekey(key []byte) error
- func (db *DB) RekeyDatabase(dbName string, key []byte) error
- type Stmt
- func (s *Stmt) Bind(idx int, val any) error
- func (s *Stmt) BindBlob(idx int, val []byte) error
- func (s *Stmt) BindDouble(idx int, val float64) error
- func (s *Stmt) BindInt(idx, val int) error
- func (s *Stmt) BindInt64(idx int, val int64) error
- func (s *Stmt) BindNull(idx int) error
- func (s *Stmt) BindText(idx int, val string) error
- func (s *Stmt) ColumnBlob(idx int) []byte
- func (s *Stmt) ColumnCount() int
- func (s *Stmt) ColumnDouble(idx int) float64
- func (s *Stmt) ColumnInt(idx int) int
- func (s *Stmt) ColumnInt64(idx int) int64
- func (s *Stmt) ColumnText(idx int) string
- func (s *Stmt) ColumnType(idx int) ColumnType
- func (s *Stmt) Finalize() error
- func (s *Stmt) Step() bool
Constants ¶
View Source
const ( OpenReadOnly = C.SQLITE_OPEN_READONLY OpenReadWrite = C.SQLITE_OPEN_READWRITE OpenCreate = C.SQLITE_OPEN_CREATE OpenURI = C.SQLITE_OPEN_URI OpenMemory = C.SQLITE_OPEN_MEMORY OpenNoMutex = C.SQLITE_OPEN_NOMUTEX OpenFullMutex = C.SQLITE_OPEN_FULLMUTEX OpenPrivateCache = C.SQLITE_OPEN_PRIVATECACHE OpenNoFollow = C.SQLITE_OPEN_NOFOLLOW OpenExResCode = C.SQLITE_OPEN_EXRESCODE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnType ¶
type ColumnType int
const ( ColumnTypeInteger ColumnType = iota ColumnTypeFloat ColumnTypeText ColumnTypeBlob ColumnTypeNull )
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func (*Stmt) ColumnBlob ¶
func (*Stmt) ColumnCount ¶
func (*Stmt) ColumnDouble ¶
func (*Stmt) ColumnInt64 ¶
func (*Stmt) ColumnText ¶
func (*Stmt) ColumnType ¶
func (s *Stmt) ColumnType(idx int) ColumnType
Click to show internal directories.
Click to hide internal directories.