s3

package
v0.0.0-...-e2e6f4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoResult               = errors.New("No result")
	ErrStatementNotInProgress = errors.New("No statement in progress")
)

Functions

This section is empty.

Types

type Column

type Column struct {
	Name  string
	Value string
}

type QueryHelper

type QueryHelper struct {
	// contains filtered or unexported fields
}

func (*QueryHelper) OneRow

func (qh *QueryHelper) OneRow(decode ...interface{}) error

type S3

type S3 struct {
	// contains filtered or unexported fields
}

S3 is a sqlite3-based key/value database.

func New

func New(dbname string) (*S3, error)

func Open

func Open(dbname string) (*S3, error)

func (*S3) Close

func (s *S3) Close() error

Close closes the database.

func (*S3) Exec

func (s *S3) Exec(sql string) error

Exec executes a raw SQL statement.

func (*S3) Locked

func (s *S3) Locked(f func())

func (*S3) LockedScanner

func (s *S3) LockedScanner(f func(s *Scanner) error) error

func (*S3) MustExec

func (s *S3) MustExec(sql string)

func (*S3) Transaction

func (s *S3) Transaction(f func(s *Scanner) error) error

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func (*Scanner) Changes

func (s *Scanner) Changes() int64

func (*Scanner) Close

func (s *Scanner) Close() (err error)

func (*Scanner) Exec

func (s *Scanner) Exec(query string, args ...interface{}) error

func (*Scanner) Prepare

func (s *Scanner) Prepare(query string, args ...interface{}) error

func (*Scanner) Query

func (s *Scanner) Query(q string, args ...interface{}) *QueryHelper

func (*Scanner) Scan

func (s *Scanner) Scan(args ...interface{}) error

func (*Scanner) ScanDebug

func (s *Scanner) ScanDebug() ([]Column, error)

type Stmt

type Stmt = driver.Stmt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL