infrastructure

package
v0.0.0-...-128d701 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSqlHandler

func NewSqlHandler() database.SqlHandler

func Router

func Router(controllers *controllers.RootController, handlers *handler.RootHandler, version string) (router *gin.Engine)

Types

type SqlHandler

type SqlHandler struct {
	Conn *sql.DB
}

func (*SqlHandler) Execute

func (handler *SqlHandler) Execute(statement string, args ...interface{}) (database.Result, error)

func (*SqlHandler) Query

func (handler *SqlHandler) Query(statement string, args ...interface{}) (database.Row, error)

type SqlResult

type SqlResult struct {
	Result sql.Result
}

func (*SqlResult) LastInsertId

func (r *SqlResult) LastInsertId() (int64, error)

func (*SqlResult) RowAffected

func (r *SqlResult) RowAffected() (int64, error)

type SqlRow

type SqlRow struct {
	Rows *sql.Rows
}

func (*SqlRow) Close

func (r *SqlRow) Close() error

func (*SqlRow) Next

func (r *SqlRow) Next() bool

func (*SqlRow) Scan

func (r *SqlRow) Scan(dest ...interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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