Documentation ¶
Index ¶
- func Asset(filePath string) ([]byte, error)
- func AssetFile(filePath string) ([]byte, error)
- func GenerateQuery(tableName string, queryName string, args map[string]interface{}) (string, []interface{}, error)
- func GomaDateTypesTableColumns() []string
- func GomaDateTypesTableName() string
- func GomaNumericTypesTableColumns() []string
- func GomaNumericTypesTableName() string
- func GomaStringTypesTableColumns() []string
- func GomaStringTypesTableName() string
- func SetupQueryArgs(rootDir string, sqlFile bool)
- type GomaDateTypesDao
- func (g GomaDateTypesDao) Delete(id int64) (sql.Result, error)
- func (g GomaDateTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)
- func (g GomaDateTypesDao) Insert(e entity.GomaDateTypes) (sql.Result, error)
- func (g GomaDateTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (g GomaDateTypesDao) SelectAll() ([]entity.GomaDateTypes, error)
- func (g GomaDateTypesDao) SelectByID(id int64) (entity.GomaDateTypes, error)
- func (g GomaDateTypesDao) Update(e entity.GomaDateTypes) (sql.Result, error)
- type GomaDateTypesDaoQueryer
- type GomaNumericTypesDao
- func (g GomaNumericTypesDao) Delete(id int64) (sql.Result, error)
- func (g GomaNumericTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)
- func (g GomaNumericTypesDao) Insert(e entity.GomaNumericTypes) (sql.Result, error)
- func (g GomaNumericTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (g GomaNumericTypesDao) SelectAll() ([]entity.GomaNumericTypes, error)
- func (g GomaNumericTypesDao) SelectByID(id int64) (entity.GomaNumericTypes, error)
- func (g GomaNumericTypesDao) Update(e entity.GomaNumericTypes) (sql.Result, error)
- type GomaNumericTypesDaoQueryer
- type GomaStringTypesDao
- func (g GomaStringTypesDao) Delete(id int64) (sql.Result, error)
- func (g GomaStringTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)
- func (g GomaStringTypesDao) Insert(e entity.GomaStringTypes) (sql.Result, error)
- func (g GomaStringTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (g GomaStringTypesDao) SelectAll() ([]entity.GomaStringTypes, error)
- func (g GomaStringTypesDao) SelectByID(id int64) (entity.GomaStringTypes, error)
- func (g GomaStringTypesDao) Update(e entity.GomaStringTypes) (sql.Result, error)
- type GomaStringTypesDaoQueryer
- type TxGomaDateTypesDao
- func (g TxGomaDateTypesDao) Delete(id int64) (sql.Result, error)
- func (g TxGomaDateTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)
- func (g TxGomaDateTypesDao) Insert(e entity.GomaDateTypes) (sql.Result, error)
- func (g TxGomaDateTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (g TxGomaDateTypesDao) SelectAll() ([]entity.GomaDateTypes, error)
- func (g TxGomaDateTypesDao) SelectByID(id int64) (entity.GomaDateTypes, error)
- func (g TxGomaDateTypesDao) Update(e entity.GomaDateTypes) (sql.Result, error)
- type TxGomaNumericTypesDao
- func (g TxGomaNumericTypesDao) Delete(id int64) (sql.Result, error)
- func (g TxGomaNumericTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)
- func (g TxGomaNumericTypesDao) Insert(e entity.GomaNumericTypes) (sql.Result, error)
- func (g TxGomaNumericTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (g TxGomaNumericTypesDao) SelectAll() ([]entity.GomaNumericTypes, error)
- func (g TxGomaNumericTypesDao) SelectByID(id int64) (entity.GomaNumericTypes, error)
- func (g TxGomaNumericTypesDao) Update(e entity.GomaNumericTypes) (sql.Result, error)
- type TxGomaStringTypesDao
- func (g TxGomaStringTypesDao) Delete(id int64) (sql.Result, error)
- func (g TxGomaStringTypesDao) Exec(query string, args ...interface{}) (sql.Result, error)
- func (g TxGomaStringTypesDao) Insert(e entity.GomaStringTypes) (sql.Result, error)
- func (g TxGomaStringTypesDao) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (g TxGomaStringTypesDao) SelectAll() ([]entity.GomaStringTypes, error)
- func (g TxGomaStringTypesDao) SelectByID(id int64) (entity.GomaStringTypes, error)
- func (g TxGomaStringTypesDao) Update(e entity.GomaStringTypes) (sql.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateQuery ¶
func GenerateQuery(tableName string, queryName string, args map[string]interface{}) (string, []interface{}, error)
GenerateQuery exported queryArgs
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 ¶
SetupQueryArgs setup query file path
Types ¶
type GomaDateTypesDao ¶
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 ¶
func (g GomaDateTypesDao) Insert(e entity.GomaDateTypes) (sql.Result, error)
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 ¶
func (g GomaDateTypesDao) Update(e entity.GomaDateTypes) (sql.Result, error)
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 ¶
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 ¶
func (g GomaNumericTypesDao) Insert(e entity.GomaNumericTypes) (sql.Result, error)
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 ¶
func (g GomaNumericTypesDao) SelectByID(id int64) (entity.GomaNumericTypes, error)
SelectByID select goma_numeric_types table by primaryKey.
func (GomaNumericTypesDao) Update ¶
func (g GomaNumericTypesDao) Update(e entity.GomaNumericTypes) (sql.Result, error)
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 ¶
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 ¶
func (g GomaStringTypesDao) Insert(e entity.GomaStringTypes) (sql.Result, error)
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 ¶
func (g GomaStringTypesDao) Update(e entity.GomaStringTypes) (sql.Result, error)
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 TxGomaDateTypesDao ¶
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 ¶
func (g TxGomaDateTypesDao) Insert(e entity.GomaDateTypes) (sql.Result, error)
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 ¶
func (g TxGomaDateTypesDao) Update(e entity.GomaDateTypes) (sql.Result, error)
Update transaction update goma_date_types table.
type TxGomaNumericTypesDao ¶
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 ¶
func (g TxGomaNumericTypesDao) Insert(e entity.GomaNumericTypes) (sql.Result, error)
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 ¶
func (g TxGomaNumericTypesDao) SelectAll() ([]entity.GomaNumericTypes, error)
SelectAll transaction select goma_numeric_types table all recode.
func (TxGomaNumericTypesDao) SelectByID ¶
func (g TxGomaNumericTypesDao) SelectByID(id int64) (entity.GomaNumericTypes, error)
SelectByID transaction select goma_numeric_types table by primaryKey.
func (TxGomaNumericTypesDao) Update ¶
func (g TxGomaNumericTypesDao) Update(e entity.GomaNumericTypes) (sql.Result, error)
Update transaction update goma_numeric_types table.
type TxGomaStringTypesDao ¶
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 ¶
func (g TxGomaStringTypesDao) Insert(e entity.GomaStringTypes) (sql.Result, error)
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 ¶
func (g TxGomaStringTypesDao) SelectByID(id int64) (entity.GomaStringTypes, error)
SelectByID transaction select goma_string_types table by primaryKey.
func (TxGomaStringTypesDao) Update ¶
func (g TxGomaStringTypesDao) Update(e entity.GomaStringTypes) (sql.Result, error)
Update transaction update goma_string_types table.