Documentation ¶
Index ¶
- Constants
- type BindType
- type DbHelper
- type DbType
- type Part
- type SQLStatement
- func (s *SQLStatement) GetPreparedStatementArgs(params map[string]interface{}) []interface{}
- func (s *SQLStatement) GetStatementArgs(params map[string]interface{}) []interface{}
- func (s *SQLStatement) HasParams() bool
- func (s *SQLStatement) PreparedStatementSQL() string
- func (s *SQLStatement) String() string
- func (s *SQLStatement) ToStatementSQL(params map[string]interface{}) string
- func (s *SQLStatement) Type() StmtType
- type StmtType
Constants ¶
View Source
const ( BtUnknown BindType = iota BtAt BtColon BtDollar BtQuestion DbUnknown DbType = iota DbMySql DbOracle DbPostgres DbSQLite DbSqlServer )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbHelper ¶
type DbHelper interface { DbType() DbType BindType() BindType ToSQLStatementVal(val interface{}) string GetScanType(columnType *sql.ColumnType) interface{} }
func GetDbHelper ¶
type SQLStatement ¶
type SQLStatement struct {
// contains filtered or unexported fields
}
SQLStatement is a parsed DML SQL Statement
func NewSQLStatement ¶
func NewSQLStatement(dbHelper DbHelper, sql string) (*SQLStatement, error)
func (*SQLStatement) GetPreparedStatementArgs ¶
func (s *SQLStatement) GetPreparedStatementArgs(params map[string]interface{}) []interface{}
func (*SQLStatement) GetStatementArgs ¶
func (s *SQLStatement) GetStatementArgs(params map[string]interface{}) []interface{}
func (*SQLStatement) HasParams ¶
func (s *SQLStatement) HasParams() bool
func (*SQLStatement) PreparedStatementSQL ¶
func (s *SQLStatement) PreparedStatementSQL() string
func (*SQLStatement) String ¶
func (s *SQLStatement) String() string
func (*SQLStatement) ToStatementSQL ¶
func (s *SQLStatement) ToStatementSQL(params map[string]interface{}) string
func (*SQLStatement) Type ¶
func (s *SQLStatement) Type() StmtType
Click to show internal directories.
Click to hide internal directories.