Documentation ¶
Index ¶
- func GetDeleteSQL(table string, keys []string, values []interface{}) spanner.Statement
- func GetInsertOrIgnoreSQL(table string, cols, keys []string, values []interface{}) spanner.Statement
- func GetInsertOrUpdateSQL(table string, cols, keys []string, values []interface{}) spanner.Statement
- func GetInsertSQL(table string, cols, keys []string, values []interface{}) spanner.Statement
- func GetUpdateSQL(table string, cols, keys []string, values []interface{}) spanner.Statement
- type Builder
- func (b *Builder) Columns() []string
- func (b *Builder) From(s string, args ...interface{}) *Builder
- func (b *Builder) GetSelectStatement() spanner.Statement
- func (b *Builder) GroupBy(s string) *Builder
- func (b *Builder) Having(s string, args ...interface{}) *Builder
- func (b *Builder) Index(index string) *Builder
- func (b *Builder) Join(s string, args ...interface{}) *Builder
- func (b *Builder) Limit(i int) *Builder
- func (b *Builder) Offset(i int) *Builder
- func (b *Builder) OrderBy(s string, args ...interface{}) *Builder
- func (b *Builder) Params(args map[string]interface{}) *Builder
- func (b *Builder) Select(s string, args ...interface{}) *Builder
- func (b *Builder) SetColumns(cols ...string) *Builder
- func (b *Builder) SetTableFieldMap(m map[string][]string) *Builder
- func (b *Builder) Statement(sql string, args ...interface{}) *Builder
- func (b *Builder) String() string
- func (b *Builder) TableSample(s string) *Builder
- func (b *Builder) Union(sel Selector, unionTypes ...string) *Builder
- func (b *Builder) Where(s string, args ...interface{}) *Builder
- func (b *Builder) WhereIf(cond bool, s string, args ...interface{}) *Builder
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeleteSQL ¶ added in v0.1.6
func GetInsertOrIgnoreSQL ¶ added in v0.2.0
func GetInsertOrUpdateSQL ¶ added in v0.2.0
func GetInsertSQL ¶ added in v0.1.4
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewSpannerBuilder ¶
func (*Builder) GetSelectStatement ¶
func (*Builder) SetColumns ¶ added in v0.1.0
func (*Builder) SetTableFieldMap ¶ added in v0.1.2
func (*Builder) TableSample ¶
Click to show internal directories.
Click to hide internal directories.