infrastructure

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router() *echo.Echo

Router ...

Types

type DB

type DB struct {
	Host     string
	Username string
	Password string
	DBName   string
	Connect  *gorm.DB
}

DB ...

type SQLHandler

type SQLHandler struct {
	Conn *gorm.DB
}

SQLHandler ... SQL handler struct

func NewSQLHandler

func NewSQLHandler() *SQLHandler

NewSQLHandler ...

func (*SQLHandler) Count

func (handler *SQLHandler) Count(out *int, model interface{}, query interface{}, args ...interface{}) interface{}

Count ...

func (*SQLHandler) Create

func (handler *SQLHandler) Create(input interface{}) (result interface{}, err error)

Create ...

func (SQLHandler) Scan

func (handler SQLHandler) Scan(out interface{}, order string) interface{}

Scan ...

func (*SQLHandler) Update

func (handler *SQLHandler) Update(out interface{}, value interface{}, query interface{}, args ...interface{}) interface{}

Update ...

func (*SQLHandler) Where

func (handler *SQLHandler) Where(out interface{}, query interface{}, args ...interface{}) interface{}

Where ...

Jump to

Keyboard shortcuts

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