Documentation
¶
Index ¶
- Constants
- func EnsureLdbInitialized(ctx context.Context, db *sql.DB) error
- func FetchSeqFromLdb(ctx context.Context, db *sql.DB) (schema.DMLSequence, error)
- func LDBForTest(t testing.TB) (res *sql.DB, teardown func())
- func LDBForTestWithPath(t testing.TB) (res *sql.DB, teardown func(), path string)
- func NewLDBTmpPath(t *testing.T) (string, func())
- func NextTestLdbTmpPath(testTmpDir string) string
- func OpenImmutableLDB(path string) (*sql.DB, error)
- func OpenLDB(path string, mode string) (*sql.DB, error)
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 ¶
Ensures the LDB is prepared for queries
func FetchSeqFromLdb ¶
Gets current sequence from provided db
func LDBForTestWithPath ¶ added in v0.0.4
func NewLDBTmpPath ¶
func NextTestLdbTmpPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.