storage

package
v0.0.0-...-5165501 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: EUPL-1.2 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateInit

func MigrateInit(psqlSchemaName string, dns string) error

func NewPostgreSQLConnection

func NewPostgreSQLConnection(dsn string) (*sqlx.DB, error)

func PostgresMigrationStatus

func PostgresMigrationStatus(dsn, schema string) (uint, bool, error)

func PostgresPerformMigrations

func PostgresPerformMigrations(dsn, schema string) error

Types

type Database

type Database struct {
	DB      *sqlx.DB
	Queries *queries.Queries
}

func New

func New(dsn string) (*Database, error)

func (*Database) Shutdown

func (r *Database) Shutdown() error

Directories

Path Synopsis
queries

Jump to

Keyboard shortcuts

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