gen

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (g *Generator) NewAlterTableAddColumn(col *model.Column) string

func (*Generator) NewAlterTableAddConstraint

func (g *Generator) NewAlterTableAddConstraint(cons *model.Constraint) string

func (*Generator) NewAlterTableAlterColumnDropNotNull

func (g *Generator) NewAlterTableAlterColumnDropNotNull(col *model.Column) string

func (*Generator) NewAlterTableAlterColumnSetNotNull

func (g *Generator) NewAlterTableAlterColumnSetNotNull(col *model.Column) string

func (*Generator) NewAlterTableDropColumn

func (g *Generator) NewAlterTableDropColumn(col *model.Column) string

func (*Generator) NewAlterTableDropConstraint

func (g *Generator) NewAlterTableDropConstraint(cons *model.Constraint) string

func (*Generator) NewCreateIndex

func (g *Generator) NewCreateIndex(idx *model.Index) string

func (*Generator) NewCreateTable

func (g *Generator) NewCreateTable(table *model.Table) string

func (*Generator) NewDropIndex

func (g *Generator) NewDropIndex(idx *model.Index) string

func (*Generator) NewDropTable

func (g *Generator) NewDropTable(table *model.Table) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL