Versions in this module Expand all Collapse all v0 v0.2.9 Feb 13, 2024 Changes in this version + const BtAt + const BtColon + const BtDollar + const BtQuestion + const BtUnknown + const DbMySql + const DbOracle + const DbPostgres + const DbSQLite + const DbSqlServer + const DbUnknown + type BindType int8 + type DbHelper interface + BindType func() BindType + DbType func() DbType + GetScanType func(columnType *sql.ColumnType) interface{} + ToSQLStatementVal func(val interface{}) string + func GetDbHelper(typeStr string) (DbHelper, error) + type DbType int8 + func ToDbType(typeStr string) (DbType, error) + type Part interface + Placeholder func() string + String func() string + ToValue func(helper DbHelper, params map[string]interface{}) string + type SQLStatement struct + func NewSQLStatement(dbHelper DbHelper, sql string) (*SQLStatement, error) + func (s *SQLStatement) GetPreparedStatementArgs(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 int8 + const StDelete + const StInsert + const StSelect + const StUnknown + const StUpdate + func ToStmtType(typeStr string) (StmtType, error)