Documentation ¶
Index ¶
- func DataToMap(rows *sql.Rows, err error) ([]map[string]interface{}, error)
- func Open(sqlType string, databaseLine string) (*sql.DB, error)
- type MyChildQuery
- type MyQuery
- func (db *MyQuery) Dec(field string, data interface{}) *MyQuery
- func (db *MyQuery) DecAll(decMap map[string]interface{}) *MyQuery
- func (db *MyQuery) Delete() (string, []interface{})
- func (db *MyQuery) Field(field ...string) *MyQuery
- func (db *MyQuery) GroupBy(groupBy string) *MyQuery
- func (db *MyQuery) Inc(field string, data interface{}) *MyQuery
- func (db *MyQuery) IncAll(incMap map[string]interface{}) *MyQuery
- func (db *MyQuery) InsertAllByMap(datas *[]map[string]interface{}) (string, []interface{})
- func (db *MyQuery) InsertAllByStruct(datas []interface{}) (string, []interface{})
- func (db *MyQuery) InsertByMap(data map[string]interface{}) (string, []interface{})
- func (db *MyQuery) InsertByStruct(data interface{}) (string, []interface{})
- func (db *MyQuery) OrderBy(Order string) *MyQuery
- func (db *MyQuery) PageSize(page string, size string) *MyQuery
- func (db *MyQuery) Table(Table string) *MyQuery
- func (db *MyQuery) ToSql() (string, []interface{})
- func (db *MyQuery) UpdateByMap(data map[string]interface{}) (string, []interface{})
- func (db *MyQuery) UpdateByStruct(data interface{}) (string, []interface{})
- func (db *MyQuery) Where(field string, val interface{}) *MyQuery
- func (db *MyQuery) WhereId(id interface{}) *MyQuery
- func (db *MyQuery) WhereIn(field string, condition ...interface{}) *MyQuery
- func (db *MyQuery) WhereInRaw(field string, childQuery MyChildQuery, val ...interface{}) *MyQuery
- func (db *MyQuery) WhereNotIn(field string, condition ...interface{}) *MyQuery
- func (db *MyQuery) WhereNotInRaw(field string, childQuery MyChildQuery, val ...interface{}) *MyQuery
- func (db *MyQuery) WhereOr(field string, val interface{}) *MyQuery
- func (db *MyQuery) WhereOrRaw(childQuery MyChildQuery, val ...interface{}) *MyQuery
- func (db *MyQuery) WhereRaw(childQuery MyChildQuery, val ...interface{}) *MyQuery
- type PgChildQuery
- type PgQuery
- func (db *PgQuery) Dec(field string, data interface{}) *PgQuery
- func (db *PgQuery) DecAll(decMap map[string]interface{}) *PgQuery
- func (db *PgQuery) Delete() (string, []interface{})
- func (db *PgQuery) Field(field ...string) *PgQuery
- func (db *PgQuery) GroupBy(groupBy string) *PgQuery
- func (db *PgQuery) Inc(field string, data interface{}) *PgQuery
- func (db *PgQuery) IncAll(incMap map[string]interface{}) *PgQuery
- func (db *PgQuery) InsertAllByMap(datas *[]map[string]interface{}) (string, []interface{})
- func (db *PgQuery) InsertAllByStruct(datas []interface{}) (string, []interface{})
- func (db *PgQuery) InsertByMap(data map[string]interface{}) (string, []interface{})
- func (db *PgQuery) InsertByStruct(data interface{}) (string, []interface{})
- func (db *PgQuery) OrderBy(Order string) *PgQuery
- func (db *PgQuery) PageSize(page string, size string) *PgQuery
- func (db *PgQuery) Table(Table string) *PgQuery
- func (db *PgQuery) ToSql() (string, []interface{})
- func (db *PgQuery) UpdateByMap(data map[string]interface{}) (string, []interface{})
- func (db *PgQuery) UpdateByStruct(data interface{}) (string, []interface{})
- func (db *PgQuery) Where(field string, val interface{}) *PgQuery
- func (db *PgQuery) WhereId(id interface{}) *PgQuery
- func (db *PgQuery) WhereIn(field string, condition ...interface{}) *PgQuery
- func (db *PgQuery) WhereInRaw(field string, childQuery PgChildQuery, val ...interface{}) *PgQuery
- func (db *PgQuery) WhereNotIn(field string, condition ...interface{}) *PgQuery
- func (db *PgQuery) WhereNotInRaw(field string, childQuery PgChildQuery, val ...interface{}) *PgQuery
- func (db *PgQuery) WhereOr(field string, val interface{}) *PgQuery
- func (db *PgQuery) WhereOrRaw(childQuery PgChildQuery, val ...interface{}) *PgQuery
- func (db *PgQuery) WhereRaw(childQuery PgChildQuery, val ...interface{}) *PgQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MyChildQuery ¶
type MyChildQuery func(*MyQuery, ...interface{})
type MyQuery ¶
type MyQuery struct {
// contains filtered or unexported fields
}
func (*MyQuery) InsertAllByMap ¶
func (*MyQuery) InsertAllByStruct ¶
func (*MyQuery) InsertByMap ¶
func (*MyQuery) InsertByStruct ¶
func (*MyQuery) UpdateByMap ¶
func (*MyQuery) UpdateByStruct ¶
func (*MyQuery) WhereInRaw ¶
func (db *MyQuery) WhereInRaw(field string, childQuery MyChildQuery, val ...interface{}) *MyQuery
func (*MyQuery) WhereNotIn ¶
func (*MyQuery) WhereNotInRaw ¶
func (db *MyQuery) WhereNotInRaw(field string, childQuery MyChildQuery, val ...interface{}) *MyQuery
func (*MyQuery) WhereOrRaw ¶
func (db *MyQuery) WhereOrRaw(childQuery MyChildQuery, val ...interface{}) *MyQuery
func (*MyQuery) WhereRaw ¶
func (db *MyQuery) WhereRaw(childQuery MyChildQuery, val ...interface{}) *MyQuery
type PgChildQuery ¶
type PgChildQuery func(*PgQuery, ...interface{})
type PgQuery ¶
type PgQuery struct {
// contains filtered or unexported fields
}
func (*PgQuery) InsertAllByMap ¶
func (*PgQuery) InsertAllByStruct ¶
func (*PgQuery) InsertByMap ¶
func (*PgQuery) InsertByStruct ¶
func (*PgQuery) UpdateByMap ¶
func (*PgQuery) UpdateByStruct ¶
func (*PgQuery) WhereInRaw ¶
func (db *PgQuery) WhereInRaw(field string, childQuery PgChildQuery, val ...interface{}) *PgQuery
func (*PgQuery) WhereNotIn ¶
func (*PgQuery) WhereNotInRaw ¶
func (db *PgQuery) WhereNotInRaw(field string, childQuery PgChildQuery, val ...interface{}) *PgQuery
func (*PgQuery) WhereOrRaw ¶
func (db *PgQuery) WhereOrRaw(childQuery PgChildQuery, val ...interface{}) *PgQuery
func (*PgQuery) WhereRaw ¶
func (db *PgQuery) WhereRaw(childQuery PgChildQuery, val ...interface{}) *PgQuery
Click to show internal directories.
Click to hide internal directories.