Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogFunc func(sql string, args ...interface{})
LogFunc func print sql log
Functions ¶
This section is empty.
Types ¶
type Querier ¶
type Querier interface {
Exec(query string, args ...interface{}) (sql.Result, error)
Query(query string, args ...interface{}) (*sql.Rows, error)
QueryRow(query string, args ...interface{}) *sql.Row
Prepare(query string) (*sql.Stmt, error)
}
Querier sql querier
type Query ¶
type Query interface {
Update(table string) Query
Set(set string) Query
DeleteFrom(table string) Query
InsertInto(table string) Query
Columns(columns string) Query
Values(values string) Query
Select(columns string) Query
SelectDistinct(columns string) Query
From(tables string) Query
Join(join string) Query
InnerJoin(innerJoin string) Query
LeftJoin(leftOuterJoin string) Query
RightJoin(rightOuterJoin string) Query
OuterJoin(outJoin string) Query
Where(where string) Query
Having(having string) Query
And() Query
Or() Query
GroupBy(having string) Query
OrderBy(orderBy string) Query
Limit(limit string) Query
SQL(sqlString string) Query
String() string
Prepare() error
Close() error
Args(args ...interface{}) Query
ReflectArgs(args interface{}) Query
Exec() (sql.Result, error)
List(columns string) ([]Value, error)
Value() (Value, error)
Row() (Row, error)
Rows() ([]Row, error)
ReflectRow(row interface{}) error
ReflectRows(rows interface{}) (int64, error)
}
Query sql
Click to show internal directories.
Click to hide internal directories.