Documentation ¶
Index ¶
- Variables
- func CheckNow(inputs ...string) error
- func GetWhere(inWhere *types.Map) (string, error)
- func PrepareWhere(where string) string
- type KeyTableChecker
- type NextIDGetter
- type SQLQueryBuilder
- func (b SQLQueryBuilder) GenerateRollBackInfoString(logData map[string]string) (string, error)
- func (b *SQLQueryBuilder) GetEcosystem() string
- func (b *SQLQueryBuilder) GetSQLInsertQuery(idGetter NextIDGetter) (string, error)
- func (b *SQLQueryBuilder) GetSQLSelectFieldsExpr() (string, error)
- func (b *SQLQueryBuilder) GetSQLUpdateExpr(logData map[string]string) (string, error)
- func (b *SQLQueryBuilder) GetSQLWhereExpr() (string, error)
- func (b *SQLQueryBuilder) GetSelectExpr() (string, error)
- func (b *SQLQueryBuilder) IsEmptyWhere() bool
- func (b *SQLQueryBuilder) SetTableID(id string)
- func (b *SQLQueryBuilder) TableID() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNow = errors.New(`It is prohibited to use NOW() or current time functions`)
)
Functions ¶
func PrepareWhere ¶
Types ¶
type KeyTableChecker ¶
KeyTableChecker checks table
type NextIDGetter ¶
type SQLQueryBuilder ¶
type SQLQueryBuilder struct { *log.Entry Table string Fields []string FieldValues []interface{} Where *types.Map KeyTableChkr KeyTableChecker // contains filtered or unexported fields }
func (SQLQueryBuilder) GenerateRollBackInfoString ¶
func (b SQLQueryBuilder) GenerateRollBackInfoString(logData map[string]string) (string, error)
func (*SQLQueryBuilder) GetEcosystem ¶
func (b *SQLQueryBuilder) GetEcosystem() string
func (*SQLQueryBuilder) GetSQLInsertQuery ¶
func (b *SQLQueryBuilder) GetSQLInsertQuery(idGetter NextIDGetter) (string, error)
func (*SQLQueryBuilder) GetSQLSelectFieldsExpr ¶
func (b *SQLQueryBuilder) GetSQLSelectFieldsExpr() (string, error)
func (*SQLQueryBuilder) GetSQLUpdateExpr ¶
func (b *SQLQueryBuilder) GetSQLUpdateExpr(logData map[string]string) (string, error)
func (*SQLQueryBuilder) GetSQLWhereExpr ¶
func (b *SQLQueryBuilder) GetSQLWhereExpr() (string, error)
func (*SQLQueryBuilder) GetSelectExpr ¶
func (b *SQLQueryBuilder) GetSelectExpr() (string, error)
func (*SQLQueryBuilder) IsEmptyWhere ¶
func (b *SQLQueryBuilder) IsEmptyWhere() bool
func (*SQLQueryBuilder) SetTableID ¶
func (b *SQLQueryBuilder) SetTableID(id string)
func (*SQLQueryBuilder) TableID ¶
func (b *SQLQueryBuilder) TableID() string
Click to show internal directories.
Click to hide internal directories.