persistence

package
v1.105.4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RQLITE_MIGRATION_SUCCESS_KEY   = "rqlite.migration.success"
	RQLITE_MIGRATION_SUCCESS_VALUE = "true"
)

Variables

This section is empty.

Functions

func InitDB

func InitDB(databaseUri string)

func IsInitialized added in v1.105.0

func IsInitialized() bool

func MigrateFromPostgresToRqlite added in v1.89.0

func MigrateFromPostgresToRqlite() error

func MustGetDBSession

func MustGetDBSession() *gorqlite.Connection

func SetDB

func SetDB(database *gorqlite.Connection)

func UpdateDBSchema added in v1.89.0

func UpdateDBSchema(driver string, uri string, schemaDir string) error

Types

type NullStringTime

type NullStringTime struct {
	Time  time.Time
	Valid bool
}

func (*NullStringTime) Scan

func (s *NullStringTime) Scan(value interface{}) error

Scan implements the Scanner interface.

type StringTime

type StringTime struct {
	Time  time.Time
	Valid bool
}

func (*StringTime) Scan

func (s *StringTime) Scan(value interface{}) error

Scan implements the Scanner interface.

Jump to

Keyboard shortcuts

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