sql

package
v0.0.0-...-ccb75e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSQLRows

func ParseSQLRows(rows *sql.Rows, schema interface{}) ([]interface{}, error)

ParseSQLRows will parse the row

Types

type Store

type Store interface {
	Start(context.Context) error
	Stop(context.Context) error
	// Get DB instance
	GetDB() *sql.DB

	// Transact wrap the transaction
	Transact(func(*sql.Tx) error) error
}

Store is the interface of KV store.

func NewSQLite3

func NewSQLite3(dbPath string) Store

NewSQLite3 instantiates an sqlite3

Jump to

Keyboard shortcuts

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