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 BeginnerContext ¶ added in v1.1.1
type BeginnerContext interface {
BeginContext(context.Context) (CommiterContext, error)
}
type CommiterContext ¶ added in v1.1.1
type CommiterContext interface { Commit() error Rollback() error QueryerContext }
type DB ¶
type DB struct { Queryer QueryerContext // contains filtered or unexported fields }
func (*DB) BeginContext ¶ added in v1.1.0
func (db *DB) BeginContext(ctx context.Context) (CommiterContext, error)
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 RawExposer ¶ added in v1.1.3
type RawQueryer ¶
type RawQueryerContext ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.