infrastructure

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

@host localhost:8080 @BasePath /v1

func NewSqlHandler

func NewSqlHandler() db.SqlHandler

Types

type SqlHandler

type SqlHandler struct {
	Conn *gorm.DB
}

func (*SqlHandler) Create

func (handler *SqlHandler) Create(value interface{}) *gorm.DB

func (*SqlHandler) Delete

func (handler *SqlHandler) Delete(value interface{}) *gorm.DB

func (*SqlHandler) Exec

func (handler *SqlHandler) Exec(sql string, values ...interface{}) *gorm.DB

func (*SqlHandler) Find

func (handler *SqlHandler) Find(out interface{}, where ...interface{}) *gorm.DB

func (*SqlHandler) First

func (handler *SqlHandler) First(out interface{}, where ...interface{}) *gorm.DB

func (*SqlHandler) Raw

func (handler *SqlHandler) Raw(sql string, values ...interface{}) *gorm.DB

func (*SqlHandler) Save

func (handler *SqlHandler) Save(value interface{}) *gorm.DB

func (*SqlHandler) Where

func (handler *SqlHandler) Where(query interface{}, args ...interface{}) *gorm.DB

Jump to

Keyboard shortcuts

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