db

package
v0.0.0-...-682619f Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAll

func CloseAll() error

func GetConnection

func GetConnection(log logger.Logger) *sql.DB

Types

type DatabaseProvider

type DatabaseProvider interface {
	GetConnection() (*sql.DB, error)
	Bootstrap(*sql.DB, string) error
}

type PostgresProvider

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

func (PostgresProvider) Bootstrap

func (p PostgresProvider) Bootstrap(conn *sql.DB, migrationsFolder string) error

func (PostgresProvider) GetConnection

func (p PostgresProvider) GetConnection() (*sql.DB, error)

func (PostgresProvider) Url

func (p PostgresProvider) Url() string

Jump to

Keyboard shortcuts

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