sqlite

package
v0.0.0-...-fee78ac Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CheckFilepath

func CheckFilepath(path string) error

func GenerateSqliteDsn

func GenerateSqliteDsn(datasourceConfig config.SqliteDataSourceConfig) string

func GetSqliteInstance

func GetSqliteInstance() (*gorm.DB, error)

func LoadSqliteInstance

func LoadSqliteInstance() error

func MigrateSqliteTables

func MigrateSqliteTables(forUpgrade bool) (err error)

MigrateSqliteTables will check if the sqlite tables exist, if not, it will create them. Sqlite tables migration is only required for first start and upgrade The first start is based on whether the `ip` of sqlite's ocs_info table is "".

Types

This section is empty.

Jump to

Keyboard shortcuts

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