database

package
v0.0.0-...-94c307b Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DATABASE_DB_CONNECTION_NOT_CONFIGURED error = errors.New("database connection not configured")

Functions

func ConfigurePostgresDBConnection

func ConfigurePostgresDBConnection(ctx context.Context) (*pgxpool.Pool, error)

func DatabaseConnectionURL

func DatabaseConnectionURL(driverName string) string

func DisplayMigrations

func DisplayMigrations(ctx context.Context, db *pgxpool.Pool) error

func Ping

func Ping(ctx context.Context, db *pgxpool.Pool) error

Types

type User

type User struct {
	// contains filtered or unexported fields
}

func GetUser

func GetUser(id int) User

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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