storage

package
v0.0.0-...-1eebd2c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: EUPL-1.2 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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