infrastructure

package
v0.0.0-...-37b5489 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

func NewContext

func NewContext(database Database) *Context

func (*Context) ConnectToDatabase

func (c *Context) ConnectToDatabase(config *viper.Viper) (*sql.DB, error)

type Database

type Database interface {
	Connect(*viper.Viper) (*sql.DB, error)
	Dump()
	Bulk(*viper.Viper) error
}

type SQL

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

func (*SQL) Bulk

func (m *SQL) Bulk(viper *viper.Viper) error

func (*SQL) Connect

func (m *SQL) Connect(config *viper.Viper) (*sql.DB, error)

func (*SQL) CreateTableDDL

func (m *SQL) CreateTableDDL(name string) (string, error)

func (*SQL) Dump

func (m *SQL) Dump()

func (*SQL) Ping

func (m *SQL) Ping()

Jump to

Keyboard shortcuts

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