sqlite

package
v0.0.0-...-bc1d458 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func SQLite

func SQLite() *Database

func (*Database) BeginTransaction

func (db *Database) BeginTransaction() bool

func (*Database) Close

func (db *Database) Close()

func (*Database) CommitTransaction

func (db *Database) CommitTransaction() bool

func (*Database) Count

func (db *Database) Count(table string) int64

func (*Database) CountWhereInt

func (db *Database) CountWhereInt(table string, field string, value int) int64

func (*Database) Create

func (db *Database) Create(filePath, scheme string) bool

func (*Database) DefaultPragmas

func (db *Database) DefaultPragmas() bool

func (*Database) Delete

func (db *Database) Delete(table, idColumnName string, idValue int) bool

func (*Database) ErrorCode

func (db *Database) ErrorCode() int

func (*Database) ErrorString

func (db *Database) ErrorString() string

func (*Database) ExecQuery

func (db *Database) ExecQuery(query string) bool

func (*Database) FinishTransaction

func (db *Database) FinishTransaction(success bool) bool

func (*Database) Insert

func (db *Database) Insert(table string, fields []*field.Field) (int64, bool)

func (*Database) LastInsertedRowID

func (db *Database) LastInsertedRowID() int64

func (*Database) Open

func (db *Database) Open(filePath string) bool

func (*Database) Remove

func (db *Database) Remove() bool

func (*Database) RollbackTransaction

func (db *Database) RollbackTransaction() bool

func (*Database) Select

func (db *Database) Select(query string) row.Result

func (*Database) SelectAndHandle

func (db *Database) SelectAndHandle(query string, handler func(row.Row))

func (*Database) Update

func (db *Database) Update(table string, fields []*field.Field) bool

func (*Database) Version

func (db *Database) Version() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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