database

package
v0.0.0-...-e60505e Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceMysql int = iota
)

Variables

This section is empty.

Functions

func Migration

func Migration(db *gorm.DB) error

func NewDatabaseSQLFactory

func NewDatabaseSQLFactory(instance int) (repository.SQL, error)

Types

type IMysqlHandler

type IMysqlHandler interface {
	GetConnection() *gorm.DB
}

type MysqlHandler

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

func NewMysqlHandler

func NewMysqlHandler(c *config) (*MysqlHandler, error)

func (MysqlHandler) GetOrders

func (mysqlHandler MysqlHandler) GetOrders() ([]domain.Order, error)

func (MysqlHandler) GetUsers

func (mysqlHandler MysqlHandler) GetUsers() ([]domain.User, error)

Jump to

Keyboard shortcuts

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