database

package
v0.0.0-...-cbae207 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SQLITE_FALLBACK_FILE = "sqlite.db"

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB)

func NewUserDB

func NewUserDB() *gorm.DB

Types

type UserQuerier

type UserQuerier interface {
	// SELECT * FROM @@table WHERE id=@id
	GetByID(id int) (gen.T, error)

	// SELECT * FROM @@table WHERE username=@username
	GetByUsername(username string) (gen.T, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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