Help us shape the future of Go! Take the 2026 Go Developer Survey

ldb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LDBSeqTableName           = "_ldb_seq"
	LDBLastUpdateTableName    = "_ldb_last_update"
	LDBLastLedgerUpdateColumn = "ledger"
	LDBSeqTableID             = 1
	LDBDatabaseDriver         = "sqlite3"
	DefaultLDBFilename        = "ldb.db"
)

Variables

This section is empty.

Functions

func EnsureLdbInitialized

func EnsureLdbInitialized(ctx context.Context, db *sql.DB) error

Ensures the LDB is prepared for queries

func FetchSeqFromLdb

func FetchSeqFromLdb(ctx context.Context, db *sql.DB) (schema.DMLSequence, error)

Gets current sequence from provided db

func LDBForTest

func LDBForTest(t testing.TB) (res *sql.DB, teardown func())

func NewLDBTmpPath

func NewLDBTmpPath(t *testing.T) (string, func())

func NextTestLdbTmpPath

func NextTestLdbTmpPath(testTmpDir string) string

func OpenImmutableLDB

func OpenImmutableLDB(path string) (*sql.DB, error)

func OpenLDB

func OpenLDB(path string, mode string) (*sql.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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