sqlite

package
v0.0.5-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Backend         = types.BackendSQLite
	SQLiteBatchSize = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sqlx.DB
}

func Open

func Open(option *types.SQLiteOpt) (*DB, error)

func (*DB) CreateTable

func (db *DB) CreateTable(ctx context.Context, opt offline.CreateTableOpt) error

func (*DB) Export

func (db *DB) Export(ctx context.Context, opt offline.ExportOpt) (*types.ExportResult, error)

func (*DB) Import

func (db *DB) Import(ctx context.Context, opt offline.ImportOpt) (int64, error)

func (*DB) Join

func (db *DB) Join(ctx context.Context, opt offline.JoinOpt) (*types.JoinResult, error)

func (*DB) Ping

func (db *DB) Ping(ctx context.Context) error

func (*DB) Push

func (db *DB) Push(ctx context.Context, opt offline.PushOpt) error

func (*DB) Snapshot

func (db *DB) Snapshot(ctx context.Context, opt offline.SnapshotOpt) error

func (*DB) TableSchema

func (db *DB) TableSchema(ctx context.Context, opt offline.TableSchemaOpt) (*types.DataTableSchema, error)

Jump to

Keyboard shortcuts

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