mysql

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyDB

type MyDB struct {
	Host     string
	User     string
	Password string
	Database string
	// contains filtered or unexported fields
}

MyDB MyDB

func (*MyDB) Close

func (m *MyDB) Close() bool

Close Close

func (*MyDB) Connect

func (m *MyDB) Connect() bool

Connect Connect

func (*MyDB) Delete

func (m *MyDB) Delete(query string, args ...interface{}) bool

Delete Delete

func (*MyDB) Get

func (m *MyDB) Get(query string, args ...interface{}) *di.DbRow

Get Get

func (*MyDB) GetList

func (m *MyDB) GetList(query string, args ...interface{}) *di.DbRows

GetList GetList

func (*MyDB) Insert

func (m *MyDB) Insert(query string, args ...interface{}) (bool, int64)

Insert Insert

func (*MyDB) Test

func (m *MyDB) Test(query string, args ...interface{}) *di.DbRow

Test Test

func (*MyDB) Update

func (m *MyDB) Update(query string, args ...interface{}) bool

Update Update

type MyDBMock added in v1.0.1

type MyDBMock struct {
	Host     string
	User     string
	Password string
	Database string

	MockSuccess bool
	MockID      int64
	MockRow     *di.DbRow
	MockRows    *di.DbRows
	// contains filtered or unexported fields
}

MyDBMock MyDBMock

func (*MyDBMock) Close added in v1.0.1

func (m *MyDBMock) Close() bool

Close Close

func (*MyDBMock) Connect added in v1.0.1

func (m *MyDBMock) Connect() bool

Connect Connect

func (*MyDBMock) Delete added in v1.0.1

func (m *MyDBMock) Delete(query string, args ...interface{}) bool

Delete Delete

func (*MyDBMock) Get added in v1.0.1

func (m *MyDBMock) Get(query string, args ...interface{}) *di.DbRow

Get Get

func (*MyDBMock) GetList added in v1.0.1

func (m *MyDBMock) GetList(query string, args ...interface{}) *di.DbRows

GetList GetList

func (*MyDBMock) Insert added in v1.0.1

func (m *MyDBMock) Insert(query string, args ...interface{}) (bool, int64)

Insert Insert

func (*MyDBMock) Test added in v1.0.1

func (m *MyDBMock) Test(query string, args ...interface{}) *di.DbRow

Test Test

func (*MyDBMock) Update added in v1.0.1

func (m *MyDBMock) Update(query string, args ...interface{}) bool

Update Update

Jump to

Keyboard shortcuts

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