Documentation ¶
Index ¶
- type DatabaseBuilder
- type DmlBuilder
- func (d *DmlBuilder) Build() (string, error)
- func (d *DmlBuilder) Database(database string) *DmlBuilder
- func (d *DmlBuilder) Engine(engine string) *DmlBuilder
- func (d *DmlBuilder) Fields(fields ...string) *DmlBuilder
- func (d *DmlBuilder) GetModel() models.Model
- func (d *DmlBuilder) Model(m models.Model) *DmlBuilder
- func (d *DmlBuilder) OrderBy(fields ...string) *DmlBuilder
- func (d *DmlBuilder) PartitionBy(partitionBy string) *DmlBuilder
- func (d *DmlBuilder) PrimaryKeys(fields ...string) *DmlBuilder
- func (d *DmlBuilder) Select(fields ...interface{}) *DmlBuilder
- func (d *DmlBuilder) Settings(settings ...string) *DmlBuilder
- func (d *DmlBuilder) String() string
- func (d *DmlBuilder) Table(table string) *DmlBuilder
- type InsertBuilder
- type QueryType
- type SelectBuilder
- type TableBuilder
- type UpdateBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseBuilder ¶
type DatabaseBuilder struct {
DmlBuilder // Embedded struct
}
func NewCreateDatabaseBuilder ¶
func NewCreateDatabaseBuilder() *DatabaseBuilder
func NewDropDatabaseBuilder ¶
func NewDropDatabaseBuilder() *DatabaseBuilder
type DmlBuilder ¶
type DmlBuilder struct {
// contains filtered or unexported fields
}
func (*DmlBuilder) Build ¶
func (d *DmlBuilder) Build() (string, error)
func (*DmlBuilder) Database ¶
func (d *DmlBuilder) Database(database string) *DmlBuilder
func (*DmlBuilder) Engine ¶
func (d *DmlBuilder) Engine(engine string) *DmlBuilder
func (*DmlBuilder) Fields ¶
func (d *DmlBuilder) Fields(fields ...string) *DmlBuilder
func (*DmlBuilder) GetModel ¶
func (d *DmlBuilder) GetModel() models.Model
func (*DmlBuilder) Model ¶
func (d *DmlBuilder) Model(m models.Model) *DmlBuilder
func (*DmlBuilder) OrderBy ¶
func (d *DmlBuilder) OrderBy(fields ...string) *DmlBuilder
func (*DmlBuilder) PartitionBy ¶
func (d *DmlBuilder) PartitionBy(partitionBy string) *DmlBuilder
func (*DmlBuilder) PrimaryKeys ¶
func (d *DmlBuilder) PrimaryKeys(fields ...string) *DmlBuilder
func (*DmlBuilder) Select ¶
func (d *DmlBuilder) Select(fields ...interface{}) *DmlBuilder
func (*DmlBuilder) Settings ¶
func (d *DmlBuilder) Settings(settings ...string) *DmlBuilder
func (*DmlBuilder) String ¶
func (d *DmlBuilder) String() string
func (*DmlBuilder) Table ¶
func (d *DmlBuilder) Table(table string) *DmlBuilder
type InsertBuilder ¶
type InsertBuilder struct {
DmlBuilder // Embedded struct
}
func NewInsertBuilder ¶
func NewInsertBuilder() *InsertBuilder
type SelectBuilder ¶
type SelectBuilder struct {
DmlBuilder // Embedded struct
}
func NewSelectBuilder ¶
func NewSelectBuilder() *SelectBuilder
type TableBuilder ¶
type TableBuilder struct {
DmlBuilder // Embedded struct
}
func NewCreateTableBuilder ¶
func NewCreateTableBuilder() *TableBuilder
func NewDropTableBuilder ¶
func NewDropTableBuilder() *TableBuilder
type UpdateBuilder ¶
type UpdateBuilder struct {
DmlBuilder
}
func NewUpdateBuilder ¶
func NewUpdateBuilder() *UpdateBuilder
Click to show internal directories.
Click to hide internal directories.