gohana

package
v0.0.0-...-ff45c16 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Db *sql.DB

Functions

This section is empty.

Types

type Instance

type Instance struct {
}

func (*Instance) Avg

func (*Instance) Avg(table, column string, conditions map[string]string) (map[string]float64, error)

func (*Instance) Connect

func (*Instance) Connect(host, port, username, password string)

func (*Instance) Count

func (*Instance) Count(table, column string, conditions map[string]string) (map[string]string, error)

func (*Instance) Delete

func (*Instance) Delete(table string, conditions map[string]string) (string, error)

func (*Instance) Disconnect

func (*Instance) Disconnect()

func (*Instance) Find

func (*Instance) Find(table string, columns []string, conditions map[string]string) (map[int]map[string]string, error)

func (*Instance) FindOne

func (*Instance) FindOne(table string, columns []string, conditions map[string]string) (map[int]map[string]string, error)

func (*Instance) Insert

func (*Instance) Insert(table string, intfc interface{}) (string, error)

func (*Instance) Max

func (*Instance) Max(table, column string, conditions map[string]string) (map[string]float64, error)

func (*Instance) Min

func (*Instance) Min(table, column string, conditions map[string]string) (map[string]float64, error)

func (*Instance) Raw

func (*Instance) Raw(query string) (*sql.Rows, error)

func (*Instance) Sum

func (*Instance) Sum(table, column string, conditions map[string]string) (map[string]string, error)

func (*Instance) Update

func (*Instance) Update(table string, conditions map[string]string, intfc interface{}) (string, error)

Jump to

Keyboard shortcuts

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