db

package
v0.0.0-...-5a94a59 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATABASE_LAYER_EMPTY = iota
	DATABASE_LAYER_1     // original schema, as of 2019
	DATABASE_LAYER_2     // hash_pre_enc removed, hash_post_enc renamed to final_hash, encryption_key renamed to padding_key, encryption_key added to blob_entries
)

Variables

View Source
var DB *sql.DB
View Source
var ErrNoRows = sql.ErrNoRows

Functions

func SetupDatabase

func SetupDatabase()

func SetupDatabaseTestMode

func SetupDatabaseTestMode(setupSchema bool)

func ShutdownDatabase

func ShutdownDatabase()

Types

type DatabaseLayer

type DatabaseLayer int

Jump to

Keyboard shortcuts

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