sqlite

package
v0.171.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MPL-2.0, MPL-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Package sqlite is responsible for creation of encrypted sqlite3 database using sqlcipher driver. It is optimized for mobile usage as well.

sqlite package also provides a capability to apply bindata migration. You can keep your migrations close to your business logic and use this package to create an encrypted sqlite3 database and then apply the migrations easily.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAdHocMigrations added in v0.67.1

func ApplyAdHocMigrations(version uint, dirty bool, m *migrate.Migrate, db *sql.DB) error

func FixCommunitiesMigration added in v0.67.1

func FixCommunitiesMigration(version uint, dirty bool, m *migrate.Migrate, db *sql.DB) error

FixCommunitiesMigration fixes an issue with a released migration In some instances if it was interrupted the migration would be skipped but marked as completed. What we do here is that we check whether we are at that migration, if so we check that the communities table is present, if not we re-run that migration.

func Migrate

func Migrate(database *sql.DB) error

func ReplayLastMigration added in v0.67.1

func ReplayLastMigration(version uint, m *migrate.Migrate) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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