database

package
v0.0.0-...-e03766a Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct{}

func NewDatabase

func NewDatabase() (*Database, *shared.Error)

func (*Database) Connect

func (database *Database) Connect() (*sql.DB, *shared.Error)

type Migrator

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

func NewMigrator

func NewMigrator(db *sql.DB) (*Migrator, *shared.Error)

func (*Migrator) Down

func (migrator *Migrator) Down()

func (*Migrator) Up

func (migrator *Migrator) Up()

type Postgres

type Postgres struct{}

func NewPostgres

func NewPostgres() (*Postgres, *shared.Error)

func (*Postgres) GenerateConnectionString

func (postgres *Postgres) GenerateConnectionString() string

Jump to

Keyboard shortcuts

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