Documentation ¶
Index ¶
- Constants
- type DB
- func (db *DB) CreateTable(ctx context.Context, opt online.CreateTableOpt) error
- func (db *DB) Get(ctx context.Context, opt online.GetOpt) (dbutil.RowMap, error)
- func (db *DB) Import(ctx context.Context, opt online.ImportOpt) error
- func (db *DB) MultiGet(ctx context.Context, opt online.MultiGetOpt) (map[string]dbutil.RowMap, error)
- func (db *DB) Ping(ctx context.Context) error
- func (db *DB) Purge(ctx context.Context, revisionID int) error
- func (db *DB) Push(ctx context.Context, opt online.PushOpt) error
Constants ¶
View Source
const (
Backend = types.BackendSQLite
)
View Source
const PUSH_QUERY = `
REPLACE INTO {{ .TableName }} ( {{ .Fields }} )
VALUES ( {{ .InsertPlaceholders }} )
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.