dao

package
v1.0.0-...-688904c Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(filePath string) ([]byte, error)

Asset default read file

func AssetFile

func AssetFile(filePath string) ([]byte, error)

AssetFile default read file

func GenerateQuery

func GenerateQuery(tableName string, queryName string, args map[string]interface{}) (string, []interface{}, error)

GenerateQuery exported queryArgs

func GomaBinaryTypesTableColumns

func GomaBinaryTypesTableColumns() []string

GomaBinaryTypesTableColumns goma_binary_types table columns

func GomaBinaryTypesTableName

func GomaBinaryTypesTableName() string

GomaBinaryTypesTableName goma_binary_types table name

func GomaDateTypesTableColumns

func GomaDateTypesTableColumns() []string

GomaDateTypesTableColumns goma_date_types table columns

func GomaDateTypesTableName

func GomaDateTypesTableName() string

GomaDateTypesTableName goma_date_types table name

func GomaNumericTypesTableColumns

func GomaNumericTypesTableColumns() []string

GomaNumericTypesTableColumns goma_numeric_types table columns

func GomaNumericTypesTableName

func GomaNumericTypesTableName() string

GomaNumericTypesTableName goma_numeric_types table name

func GomaStringTypesTableColumns

func GomaStringTypesTableColumns() []string

GomaStringTypesTableColumns goma_string_types table columns

func GomaStringTypesTableName

func GomaStringTypesTableName() string

GomaStringTypesTableName goma_string_types table name

func SetupQueryArgs

func SetupQueryArgs(rootDir string, sqlFile bool)

SetupQueryArgs setup query file path

Types

type GomaBinaryTypesDao

type GomaBinaryTypesDao struct {
	*sql.DB
	TableName string
	Columns   []string
}

GomaBinaryTypesDao is generated goma_binary_types table.

func GomaBinaryTypes

func GomaBinaryTypes(db *sql.DB) GomaBinaryTypesDao

GomaBinaryTypes is GomaBinaryTypesDao.

func (GomaBinaryTypesDao) Delete

func (g GomaBinaryTypesDao) Delete(binaryID int64) (sql.Result, error)

Delete delete goma_binary_types table.

func (GomaBinaryTypesDao) Exec

func (g GomaBinaryTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)

Exec GomaBinaryTypesDao exec

func (GomaBinaryTypesDao) Insert

Insert insert goma_binary_types table.

func (GomaBinaryTypesDao) Query

func (g GomaBinaryTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)

Query GomaBinaryTypesDao query

func (GomaBinaryTypesDao) SelectAll

func (g GomaBinaryTypesDao) SelectAll() ([]entity.GomaBinaryTypes, error)

SelectAll select goma_binary_types table all recode.

func (GomaBinaryTypesDao) SelectByID

func (g GomaBinaryTypesDao) SelectByID(binaryID int64) (entity.GomaBinaryTypes, error)

SelectByID select goma_binary_types table by primaryKey.

func (GomaBinaryTypesDao) Update

Update update goma_binary_types table.

type GomaBinaryTypesDaoQueryer

type GomaBinaryTypesDaoQueryer interface {
	Query(query string, args ...interface{}) (*sql.Rows, error)
	Exec(query string, args ...interface{}) (sql.Result, error)
}

GomaBinaryTypesDaoQueryer is interface

type GomaDateTypesDao

type GomaDateTypesDao struct {
	*sql.DB
	TableName string
	Columns   []string
}

GomaDateTypesDao is generated goma_date_types table.

func GomaDateTypes

func GomaDateTypes(db *sql.DB) GomaDateTypesDao

GomaDateTypes is GomaDateTypesDao.

func (GomaDateTypesDao) Delete

func (g GomaDateTypesDao) Delete(id int64) (sql.Result, error)

Delete delete goma_date_types table.

func (GomaDateTypesDao) Exec

func (g GomaDateTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)

Exec GomaDateTypesDao exec

func (GomaDateTypesDao) Insert

Insert insert goma_date_types table.

func (GomaDateTypesDao) Query

func (g GomaDateTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)

Query GomaDateTypesDao query

func (GomaDateTypesDao) SelectAll

func (g GomaDateTypesDao) SelectAll() ([]entity.GomaDateTypes, error)

SelectAll select goma_date_types table all recode.

func (GomaDateTypesDao) SelectByID

func (g GomaDateTypesDao) SelectByID(id int64) (entity.GomaDateTypes, error)

SelectByID select goma_date_types table by primaryKey.

func (GomaDateTypesDao) Update

Update update goma_date_types table.

type GomaDateTypesDaoQueryer

type GomaDateTypesDaoQueryer interface {
	Query(query string, args ...interface{}) (*sql.Rows, error)
	Exec(query string, args ...interface{}) (sql.Result, error)
}

GomaDateTypesDaoQueryer is interface

type GomaNumericTypesDao

type GomaNumericTypesDao struct {
	*sql.DB
	TableName string
	Columns   []string
}

GomaNumericTypesDao is generated goma_numeric_types table.

func GomaNumericTypes

func GomaNumericTypes(db *sql.DB) GomaNumericTypesDao

GomaNumericTypes is GomaNumericTypesDao.

func (GomaNumericTypesDao) Delete

func (g GomaNumericTypesDao) Delete(id int64) (sql.Result, error)

Delete delete goma_numeric_types table.

func (GomaNumericTypesDao) Exec

func (g GomaNumericTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)

Exec GomaNumericTypesDao exec

func (GomaNumericTypesDao) Insert

Insert insert goma_numeric_types table.

func (GomaNumericTypesDao) Query

func (g GomaNumericTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)

Query GomaNumericTypesDao query

func (GomaNumericTypesDao) SelectAll

func (g GomaNumericTypesDao) SelectAll() ([]entity.GomaNumericTypes, error)

SelectAll select goma_numeric_types table all recode.

func (GomaNumericTypesDao) SelectByID

SelectByID select goma_numeric_types table by primaryKey.

func (GomaNumericTypesDao) Update

Update update goma_numeric_types table.

type GomaNumericTypesDaoQueryer

type GomaNumericTypesDaoQueryer interface {
	Query(query string, args ...interface{}) (*sql.Rows, error)
	Exec(query string, args ...interface{}) (sql.Result, error)
}

GomaNumericTypesDaoQueryer is interface

type GomaStringTypesDao

type GomaStringTypesDao struct {
	*sql.DB
	TableName string
	Columns   []string
}

GomaStringTypesDao is generated goma_string_types table.

func GomaStringTypes

func GomaStringTypes(db *sql.DB) GomaStringTypesDao

GomaStringTypes is GomaStringTypesDao.

func (GomaStringTypesDao) Delete

func (g GomaStringTypesDao) Delete(id int64) (sql.Result, error)

Delete delete goma_string_types table.

func (GomaStringTypesDao) Exec

func (g GomaStringTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)

Exec GomaStringTypesDao exec

func (GomaStringTypesDao) Insert

Insert insert goma_string_types table.

func (GomaStringTypesDao) Query

func (g GomaStringTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)

Query GomaStringTypesDao query

func (GomaStringTypesDao) SelectAll

func (g GomaStringTypesDao) SelectAll() ([]entity.GomaStringTypes, error)

SelectAll select goma_string_types table all recode.

func (GomaStringTypesDao) SelectByID

func (g GomaStringTypesDao) SelectByID(id int64) (entity.GomaStringTypes, error)

SelectByID select goma_string_types table by primaryKey.

func (GomaStringTypesDao) Update

Update update goma_string_types table.

type GomaStringTypesDaoQueryer

type GomaStringTypesDaoQueryer interface {
	Query(query string, args ...interface{}) (*sql.Rows, error)
	Exec(query string, args ...interface{}) (sql.Result, error)
}

GomaStringTypesDaoQueryer is interface

type TxGomaBinaryTypesDao

type TxGomaBinaryTypesDao struct {
	*sql.Tx
	TableName string
	Columns   []string
}

TxGomaBinaryTypesDao is generated goma_binary_types table transaction.

func TxGomaBinaryTypes

func TxGomaBinaryTypes(tx *sql.Tx) TxGomaBinaryTypesDao

TxGomaBinaryTypes is GomaBinaryTypesDao.

func (TxGomaBinaryTypesDao) Delete

func (g TxGomaBinaryTypesDao) Delete(binaryID int64) (sql.Result, error)

Delete transaction delete goma_binary_types table.

func (TxGomaBinaryTypesDao) Exec

func (g TxGomaBinaryTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)

Exec TxGomaBinaryTypesDao exec

func (TxGomaBinaryTypesDao) Insert

Insert transaction insert goma_binary_types table.

func (TxGomaBinaryTypesDao) Query

func (g TxGomaBinaryTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)

Query TxGomaBinaryTypesDao query

func (TxGomaBinaryTypesDao) SelectAll

func (g TxGomaBinaryTypesDao) SelectAll() ([]entity.GomaBinaryTypes, error)

SelectAll transaction select goma_binary_types table all recode.

func (TxGomaBinaryTypesDao) SelectByID

func (g TxGomaBinaryTypesDao) SelectByID(binaryID int64) (entity.GomaBinaryTypes, error)

SelectByID transaction select goma_binary_types table by primaryKey.

func (TxGomaBinaryTypesDao) Update

Update transaction update goma_binary_types table.

type TxGomaDateTypesDao

type TxGomaDateTypesDao struct {
	*sql.Tx
	TableName string
	Columns   []string
}

TxGomaDateTypesDao is generated goma_date_types table transaction.

func TxGomaDateTypes

func TxGomaDateTypes(tx *sql.Tx) TxGomaDateTypesDao

TxGomaDateTypes is GomaDateTypesDao.

func (TxGomaDateTypesDao) Delete

func (g TxGomaDateTypesDao) Delete(id int64) (sql.Result, error)

Delete transaction delete goma_date_types table.

func (TxGomaDateTypesDao) Exec

func (g TxGomaDateTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)

Exec TxGomaDateTypesDao exec

func (TxGomaDateTypesDao) Insert

Insert transaction insert goma_date_types table.

func (TxGomaDateTypesDao) Query

func (g TxGomaDateTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)

Query TxGomaDateTypesDao query

func (TxGomaDateTypesDao) SelectAll

func (g TxGomaDateTypesDao) SelectAll() ([]entity.GomaDateTypes, error)

SelectAll transaction select goma_date_types table all recode.

func (TxGomaDateTypesDao) SelectByID

func (g TxGomaDateTypesDao) SelectByID(id int64) (entity.GomaDateTypes, error)

SelectByID transaction select goma_date_types table by primaryKey.

func (TxGomaDateTypesDao) Update

Update transaction update goma_date_types table.

type TxGomaNumericTypesDao

type TxGomaNumericTypesDao struct {
	*sql.Tx
	TableName string
	Columns   []string
}

TxGomaNumericTypesDao is generated goma_numeric_types table transaction.

func TxGomaNumericTypes

func TxGomaNumericTypes(tx *sql.Tx) TxGomaNumericTypesDao

TxGomaNumericTypes is GomaNumericTypesDao.

func (TxGomaNumericTypesDao) Delete

func (g TxGomaNumericTypesDao) Delete(id int64) (sql.Result, error)

Delete transaction delete goma_numeric_types table.

func (TxGomaNumericTypesDao) Exec

func (g TxGomaNumericTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)

Exec TxGomaNumericTypesDao exec

func (TxGomaNumericTypesDao) Insert

Insert transaction insert goma_numeric_types table.

func (TxGomaNumericTypesDao) Query

func (g TxGomaNumericTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)

Query TxGomaNumericTypesDao query

func (TxGomaNumericTypesDao) SelectAll

SelectAll transaction select goma_numeric_types table all recode.

func (TxGomaNumericTypesDao) SelectByID

SelectByID transaction select goma_numeric_types table by primaryKey.

func (TxGomaNumericTypesDao) Update

Update transaction update goma_numeric_types table.

type TxGomaStringTypesDao

type TxGomaStringTypesDao struct {
	*sql.Tx
	TableName string
	Columns   []string
}

TxGomaStringTypesDao is generated goma_string_types table transaction.

func TxGomaStringTypes

func TxGomaStringTypes(tx *sql.Tx) TxGomaStringTypesDao

TxGomaStringTypes is GomaStringTypesDao.

func (TxGomaStringTypesDao) Delete

func (g TxGomaStringTypesDao) Delete(id int64) (sql.Result, error)

Delete transaction delete goma_string_types table.

func (TxGomaStringTypesDao) Exec

func (g TxGomaStringTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)

Exec TxGomaStringTypesDao exec

func (TxGomaStringTypesDao) Insert

Insert transaction insert goma_string_types table.

func (TxGomaStringTypesDao) Query

func (g TxGomaStringTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)

Query TxGomaStringTypesDao query

func (TxGomaStringTypesDao) SelectAll

func (g TxGomaStringTypesDao) SelectAll() ([]entity.GomaStringTypes, error)

SelectAll transaction select goma_string_types table all recode.

func (TxGomaStringTypesDao) SelectByID

SelectByID transaction select goma_string_types table by primaryKey.

func (TxGomaStringTypesDao) Update

Update transaction update goma_string_types table.

Jump to

Keyboard shortcuts

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