Documentation ¶
Overview ¶
Package easql is a sqlx + squirrel wrapper
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct { Queryer QueryerContext // contains filtered or unexported fields }
type Queryer ¶
type Queryer interface { Get(interface{}, squirrel.SelectBuilder) error Select(interface{}, squirrel.SelectBuilder) error Insert(squirrel.InsertBuilder) (sql.Result, error) Update(squirrel.UpdateBuilder) (sql.Result, error) Delete(squirrel.DeleteBuilder) (sql.Result, error) }
type QueryerContext ¶ added in v1.1.0
type QueryerContext interface { GetContext(context.Context, interface{}, squirrel.SelectBuilder) error SelectContext(context.Context, interface{}, squirrel.SelectBuilder) error InsertContext(context.Context, squirrel.InsertBuilder) (sql.Result, error) UpdateContext(context.Context, squirrel.UpdateBuilder) (sql.Result, error) DeleteContext(context.Context, squirrel.DeleteBuilder) (sql.Result, error) }
type RawQueryer ¶
type RawQueryerContext ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.