Documentation
¶
Index ¶
- type Generator
- func (g *Generator) NewAlterTableAddColumn(col *model.Column) string
- func (g *Generator) NewAlterTableAddConstraint(cons *model.Constraint) string
- func (g *Generator) NewAlterTableAlterColumnDropNotNull(col *model.Column) string
- func (g *Generator) NewAlterTableAlterColumnSetNotNull(col *model.Column) string
- func (g *Generator) NewAlterTableDropColumn(col *model.Column) string
- func (g *Generator) NewAlterTableDropConstraint(cons *model.Constraint) string
- func (g *Generator) NewCreateIndex(idx *model.Index) string
- func (g *Generator) NewCreateTable(table *model.Table) string
- func (g *Generator) NewDropIndex(idx *model.Index) string
- func (g *Generator) NewDropTable(table *model.Table) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { PrettyCfg tree.PrettyCfg // comment out potentially dangerous statements with a warning Warnings bool }
Generator converts cockroachdb tree nodes into strings
func NewGenerator ¶
func NewGenerator() *Generator
NewGenerator configures a generator with sensible defaults
func (*Generator) NewAlterTableAddColumn ¶
func (*Generator) NewAlterTableAddConstraint ¶
func (g *Generator) NewAlterTableAddConstraint(cons *model.Constraint) string
func (*Generator) NewAlterTableAlterColumnDropNotNull ¶
func (*Generator) NewAlterTableAlterColumnSetNotNull ¶
func (*Generator) NewAlterTableDropColumn ¶
func (*Generator) NewAlterTableDropConstraint ¶
func (g *Generator) NewAlterTableDropConstraint(cons *model.Constraint) string
Click to show internal directories.
Click to hide internal directories.