Documentation
¶
Index ¶
- Variables
- func And(cond ...dbr.Builder) dbr.Builder
- func Eq(column string, value interface{}) dbr.Builder
- func Expr(query string, value ...interface{}) dbr.Builder
- func Gt(column string, value interface{}) dbr.Builder
- func Gte(column string, value interface{}) dbr.Builder
- func I(s string) dbr.I
- func Lt(column string, value interface{}) dbr.Builder
- func Lte(column string, value interface{}) dbr.Builder
- func Neq(column string, value interface{}) dbr.Builder
- func Or(cond ...dbr.Builder) dbr.Builder
- func Set() *updateSet
- type Builder
- type MSSQLDialect
- func (d MSSQLDialect) EncodeBool(b bool) string
- func (d MSSQLDialect) EncodeBytes(b []byte) string
- func (d MSSQLDialect) EncodeString(s string) string
- func (d MSSQLDialect) EncodeTime(t time.Time) string
- func (d MSSQLDialect) Placeholder(n int) string
- func (d MSSQLDialect) QuoteIdent(s string) string
- type MySQLDialect
- func (d MySQLDialect) EncodeBool(b bool) string
- func (d MySQLDialect) EncodeBytes(b []byte) string
- func (d MySQLDialect) EncodeString(s string) string
- func (d MySQLDialect) EncodeTime(t time.Time) string
- func (d MySQLDialect) Placeholder(n int) string
- func (d MySQLDialect) QuoteIdent(s string) string
- type SQLBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MySQL = SQLBuilder{ // contains filtered or unexported fields } MSSQL = SQLBuilder{ // contains filtered or unexported fields } )
Functions ¶
Types ¶
type MSSQLDialect ¶
type MSSQLDialect struct{}
func (MSSQLDialect) EncodeBool ¶
func (d MSSQLDialect) EncodeBool(b bool) string
func (MSSQLDialect) EncodeBytes ¶
func (d MSSQLDialect) EncodeBytes(b []byte) string
func (MSSQLDialect) EncodeString ¶
func (d MSSQLDialect) EncodeString(s string) string
func (MSSQLDialect) EncodeTime ¶
func (d MSSQLDialect) EncodeTime(t time.Time) string
func (MSSQLDialect) Placeholder ¶
func (d MSSQLDialect) Placeholder(n int) string
func (MSSQLDialect) QuoteIdent ¶
func (d MSSQLDialect) QuoteIdent(s string) string
type MySQLDialect ¶
type MySQLDialect struct { }
func (MySQLDialect) EncodeBool ¶
func (d MySQLDialect) EncodeBool(b bool) string
func (MySQLDialect) EncodeBytes ¶
func (d MySQLDialect) EncodeBytes(b []byte) string
func (MySQLDialect) EncodeString ¶
func (d MySQLDialect) EncodeString(s string) string
func (MySQLDialect) EncodeTime ¶
func (d MySQLDialect) EncodeTime(t time.Time) string
func (MySQLDialect) Placeholder ¶
func (d MySQLDialect) Placeholder(n int) string
func (MySQLDialect) QuoteIdent ¶
func (d MySQLDialect) QuoteIdent(s string) string
type SQLBuilder ¶
type SQLBuilder struct {
// contains filtered or unexported fields
}
func (*SQLBuilder) MustBuild ¶
func (s *SQLBuilder) MustBuild(b Builder) string
Click to show internal directories.
Click to hide internal directories.