Documentation ¶
Index ¶
- type FutureRAM
- type FutureSQL
- func (f *FutureSQL) Combine(n Future) error
- func (f *FutureSQL) PrepareQuery(parameters ...SQLExpression) (query string, arguments []interface{}, is_single bool)
- func (f *FutureSQL) RunQuery(pf *ExecutableFuture, req *FutureRequest, parameters []SQLExpression) ([]*Record, bool, *OError)
- func (f *FutureSQL) ShouldCombine(n Future) bool
- func (f *FutureSQL) Work(pf *ExecutableFuture)
- func (f *FutureSQL) WorkDeleteByIds(pf *ExecutableFuture, req *FutureRequest, k *FutureRequestKindDeleteByIds)
- func (f *FutureSQL) WorkFindByFields(pf *ExecutableFuture, req *FutureRequest, k *FutureRequestKindFindByAnyFields)
- func (f *FutureSQL) WorkFindByIds(pf *ExecutableFuture, req *FutureRequest, k *FutureRequestKindFindByIds)
- type RAM
- type SQL
- type SQLEquals
- type SQLExpression
- type SQLLiteral
- type SQLLogic
- type SQLPromise
- type SQLQuery
- type SQLWhere
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FutureRAM ¶
type FutureRAM struct {
RAM *RAM
}
func (*FutureRAM) ShouldCombine ¶
commands to FutureRAM should never be combined as it would not be more efficient
func (*FutureRAM) WorkFindByIds ¶
func (fr *FutureRAM) WorkFindByIds(ef *ExecutableFuture, req *FutureRequest, k *FutureRequestKindFindByIds)
type FutureSQL ¶
func (*FutureSQL) PrepareQuery ¶
func (f *FutureSQL) PrepareQuery(parameters ...SQLExpression) (query string, arguments []interface{}, is_single bool)
func (*FutureSQL) RunQuery ¶
func (f *FutureSQL) RunQuery(pf *ExecutableFuture, req *FutureRequest, parameters []SQLExpression) ([]*Record, bool, *OError)
func (*FutureSQL) ShouldCombine ¶
func (*FutureSQL) WorkDeleteByIds ¶
func (f *FutureSQL) WorkDeleteByIds(pf *ExecutableFuture, req *FutureRequest, k *FutureRequestKindDeleteByIds)
func (*FutureSQL) WorkFindByFields ¶
func (f *FutureSQL) WorkFindByFields(pf *ExecutableFuture, req *FutureRequest, k *FutureRequestKindFindByAnyFields)
func (*FutureSQL) WorkFindByIds ¶
func (f *FutureSQL) WorkFindByIds(pf *ExecutableFuture, req *FutureRequest, k *FutureRequestKindFindByIds)
type SQL ¶
func (*SQL) GetFieldByName ¶
func (*SQL) GetIdFieldName ¶
func (*SQL) GetPromise ¶
func (sr *SQL) GetPromise(r *Request) (LeasedPromise, *SQLPromise)
func(sr *SQL) ParseJSON(r *Request, src *Record, raw []byte) (*Record) { return ParseJSONHelper(src, raw, sr.Type); }
type SQLExpression ¶
type SQLExpression interface {
Express(*SQLQuery)
}
type SQLLiteral ¶
type SQLLiteral struct {
Expression string
}
func (*SQLLiteral) Express ¶
func (literal *SQLLiteral) Express(q *SQLQuery)
type SQLLogic ¶
type SQLLogic struct { Expressions []SQLExpression Keyword string }
func NewSQLAnd ¶
func NewSQLAnd(exprs ...SQLExpression) *SQLLogic
func NewSQLLogic ¶
func NewSQLLogic(keyword string, exprs []SQLExpression) *SQLLogic
func NewSQLOr ¶
func NewSQLOr(exprs ...SQLExpression) *SQLLogic
type SQLPromise ¶
func (*SQLPromise) Failure ¶
func (rsp *SQLPromise) Failure(r *Request)
func (*SQLPromise) GetSQLTransaction ¶
func (*SQLPromise) Success ¶
func (rsp *SQLPromise) Success(r *Request)
type SQLQuery ¶
type SQLQuery struct { Query string FmtArguments []interface{} SqlArguments []interface{} }
func (*SQLQuery) PrepareQuery ¶
type SQLWhere ¶
type SQLWhere struct {
Expression SQLExpression
}
func NewSQLWhere ¶
func NewSQLWhere(expr SQLExpression) *SQLWhere
Click to show internal directories.
Click to hide internal directories.