mysql

package
v0.0.0-...-041f4c2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Tablename string
	Dbname    string
	DbptrW    *sql.DB
	DbptrR    *sql.DB
}

func NewBase

func NewBase(Dbname string) *Base

func (*Base) BuildCondition

func (b *Base) BuildCondition(condition map[string]string) (string, []interface{})

func (*Base) BuildQuerySQL

func (b *Base) BuildQuerySQL(condition map[string]string, other map[string]string) (string, []interface{})

func (*Base) FetchResult

func (b *Base) FetchResult(rows *sql.Rows) []map[string]interface{}

func (*Base) FetchRow

func (b *Base) FetchRow(fields string, condition map[string]string) map[string]interface{}

func (*Base) SetTablename

func (b *Base) SetTablename(tablename string)

type Jiafu

type Jiafu struct {
	*Base
}

func NewJiafu

func NewJiafu() *Jiafu

func (*Jiafu) FetchRowNew

func (j *Jiafu) FetchRowNew()

type Open

type Open struct {
	*Base
}

func NewOpen

func NewOpen() *Open

func (*Open) FetchRowNew

func (open *Open) FetchRowNew()

Jump to

Keyboard shortcuts

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