Documentation ¶
Index ¶
- type Index
- type Insert
- type InsertAll
- type Query
- func (q Query) Build(query rel.Query) (string, []interface{})
- func (q Query) Write(buffer *builder.Buffer, query rel.Query)
- func (q Query) WriteHaving(buffer *builder.Buffer, table string, filter rel.FilterQuery)
- func (q Query) WriteLimitOffet(buffer *builder.Buffer, limit rel.Limit, offset rel.Offset)
- func (q Query) WriteQuery(buffer *builder.Buffer, query rel.Query)
- func (q Query) WriteSelect(buffer *builder.Buffer, table string, selectQuery rel.SelectQuery, ...)
- func (q Query) WriteWhere(buffer *builder.Buffer, table string, filter rel.FilterQuery)
- type Table
- func (t Table) Build(table rel.Table) string
- func (t Table) WriteAlterTable(buffer *builder.Buffer, table rel.Table)
- func (t Table) WriteColumn(buffer *builder.Buffer, column rel.Column)
- func (t Table) WriteCreateTable(buffer *builder.Buffer, table rel.Table)
- func (t Table) WriteDropTable(buffer *builder.Buffer, table rel.Table)
- func (t Table) WriteKey(buffer *builder.Buffer, key rel.Key)
- func (t Table) WriteOptions(buffer *builder.Buffer, options string)
- func (t Table) WriteRenameTable(buffer *builder.Buffer, table rel.Table)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct { BufferFactory builder.BufferFactory Query builder.QueryWriter Filter builder.Filter }
Index builder.
func (Index) WriteCreateIndex ¶
WriteCreateIndex to buffer
func (Index) WriteDropIndex ¶
WriteDropIndex to buffer
type Query ¶
Query builder.
func (Query) WriteHaving ¶
WriteHaving SQL to buffer.
func (Query) WriteLimitOffet ¶
WriteLimitOffet SQL to buffer.
func (Query) WriteQuery ¶
WriteQuery SQL to buffer.
func (Query) WriteSelect ¶
func (q Query) WriteSelect(buffer *builder.Buffer, table string, selectQuery rel.SelectQuery, limit rel.Limit, offset rel.Offset)
WriteSelect SQL to buffer.
func (Query) WriteWhere ¶
WriteWhere SQL to buffer.
type Table ¶
type Table struct { BufferFactory builder.BufferFactory ColumnMapper builder.ColumnMapper DropKeyMapper builder.DropKeyMapper }
Table builder.
func (Table) WriteAlterTable ¶
WriteAlterTable query to buffer.
func (Table) WriteColumn ¶
WriteColumn definition to buffer.
func (Table) WriteCreateTable ¶
WriteCreateTable query to buffer.
func (Table) WriteDropTable ¶
WriteDropTable query to buffer.
func (Table) WriteOptions ¶
WriteOptions sql to buffer.
Click to show internal directories.
Click to hide internal directories.