storage

package
v0.0.0-...-784c0f6 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseStorage

func UseStorage(database Database, migrations embed.FS) (*sql.DB, error)

Types

type Database

type Database struct {
	Storage  Storage         `toml:"storage"`
	Sqlite   sqlite.Config   `toml:"sqlite"`
	Postgres postgres.Config `toml:"postgres,commented"`
}

Database is ...

type Storage

type Storage string
const (
	Sqlite   Storage = "sqlite"
	Postgres Storage = "postgres"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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