grammars

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expression

type Expression string

type Mysql

type Mysql struct {
	// contains filtered or unexported fields
}

func NewMysql

func NewMysql(tablePrefix string) *Mysql

func (*Mysql) CompileAdd

func (r *Mysql) CompileAdd(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileChange

func (r *Mysql) CompileChange(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileColumns

func (r *Mysql) CompileColumns(schema, table string) string

func (*Mysql) CompileComment

func (r *Mysql) CompileComment(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Mysql) CompileCreate

func (r *Mysql) CompileCreate(blueprint schema.Blueprint) (string, error)

func (*Mysql) CompileDisableForeignKeyConstraints

func (r *Mysql) CompileDisableForeignKeyConstraints() string

func (*Mysql) CompileDrop

func (r *Mysql) CompileDrop(blueprint schema.Blueprint) (string, error)

func (*Mysql) CompileDropAllDomains

func (r *Mysql) CompileDropAllDomains(_ []string) (string, error)

func (*Mysql) CompileDropAllTables

func (r *Mysql) CompileDropAllTables(tables []string) (string, error)

func (*Mysql) CompileDropAllTypes

func (r *Mysql) CompileDropAllTypes(_ []string) (string, error)

func (*Mysql) CompileDropAllViews

func (r *Mysql) CompileDropAllViews(views []string) (string, error)

func (*Mysql) CompileDropColumn

func (r *Mysql) CompileDropColumn(blueprint schema.Blueprint, command *schema.Command) ([]string, error)

func (*Mysql) CompileDropForeign

func (r *Mysql) CompileDropForeign(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileDropFullText

func (r *Mysql) CompileDropFullText(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileDropIfExists

func (r *Mysql) CompileDropIfExists(blueprint schema.Blueprint) (string, error)

func (*Mysql) CompileDropIndex

func (r *Mysql) CompileDropIndex(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileDropPrimary

func (r *Mysql) CompileDropPrimary(blueprint schema.Blueprint, _ *schema.Command) (string, error)

func (*Mysql) CompileDropUnique

func (r *Mysql) CompileDropUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileEnableForeignKeyConstraints

func (r *Mysql) CompileEnableForeignKeyConstraints() string

func (*Mysql) CompileForeign

func (r *Mysql) CompileForeign(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileForeignKeys

func (r *Mysql) CompileForeignKeys(schema, table string) string

func (*Mysql) CompileFullText

func (r *Mysql) CompileFullText(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileIndex

func (r *Mysql) CompileIndex(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileIndexes

func (r *Mysql) CompileIndexes(schema, table string) string

func (*Mysql) CompilePrimary

func (r *Mysql) CompilePrimary(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileRename

func (r *Mysql) CompileRename(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileRenameColumn

func (r *Mysql) CompileRenameColumn(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileRenameIndex

func (r *Mysql) CompileRenameIndex(_ schema.Schema, blueprint schema.Blueprint, command *schema.Command) ([]string, error)

func (*Mysql) CompileTables

func (r *Mysql) CompileTables(database string) string

func (*Mysql) CompileTypes

func (r *Mysql) CompileTypes() string

func (*Mysql) CompileUnique

func (r *Mysql) CompileUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Mysql) CompileViews

func (r *Mysql) CompileViews(database string) string

func (*Mysql) GetAttributeCommands

func (r *Mysql) GetAttributeCommands() []string

func (*Mysql) ModifyAfter

func (r *Mysql) ModifyAfter(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) ModifyCollation

func (r *Mysql) ModifyCollation(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) ModifyComment

func (r *Mysql) ModifyComment(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) ModifyDefault

func (r *Mysql) ModifyDefault(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) ModifyFirst

func (r *Mysql) ModifyFirst(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) ModifyIncrement

func (r *Mysql) ModifyIncrement(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) ModifyNullable

func (r *Mysql) ModifyNullable(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) ModifyOnUpdate

func (r *Mysql) ModifyOnUpdate(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) ModifyUnsigned

func (r *Mysql) ModifyUnsigned(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Mysql) TypeBigInteger

func (r *Mysql) TypeBigInteger(_ schema.ColumnDefinition) string

func (*Mysql) TypeBoolean

func (r *Mysql) TypeBoolean(_ schema.ColumnDefinition) string

func (*Mysql) TypeChar

func (r *Mysql) TypeChar(column schema.ColumnDefinition) string

func (*Mysql) TypeDate

func (r *Mysql) TypeDate(_ schema.ColumnDefinition) string

func (*Mysql) TypeDateTime

func (r *Mysql) TypeDateTime(column schema.ColumnDefinition) string

func (*Mysql) TypeDateTimeTz

func (r *Mysql) TypeDateTimeTz(column schema.ColumnDefinition) string

func (*Mysql) TypeDecimal

func (r *Mysql) TypeDecimal(column schema.ColumnDefinition) string

func (*Mysql) TypeDouble

func (r *Mysql) TypeDouble(_ schema.ColumnDefinition) string

func (*Mysql) TypeEnum

func (r *Mysql) TypeEnum(column schema.ColumnDefinition) string

func (*Mysql) TypeFloat

func (r *Mysql) TypeFloat(column schema.ColumnDefinition) string

func (*Mysql) TypeGeometry added in v0.7.0

func (r *Mysql) TypeGeometry(column schema.ColumnDefinition) string

func (*Mysql) TypeGeometryCollection added in v0.7.0

func (r *Mysql) TypeGeometryCollection(column schema.ColumnDefinition) string

func (*Mysql) TypeInteger

func (r *Mysql) TypeInteger(_ schema.ColumnDefinition) string

func (*Mysql) TypeJson

func (r *Mysql) TypeJson(_ schema.ColumnDefinition) string

func (*Mysql) TypeJsonb

func (r *Mysql) TypeJsonb(_ schema.ColumnDefinition) string

func (*Mysql) TypeLineString added in v0.7.0

func (r *Mysql) TypeLineString(column schema.ColumnDefinition) string

func (*Mysql) TypeLongText

func (r *Mysql) TypeLongText(_ schema.ColumnDefinition) string

func (*Mysql) TypeMediumInteger

func (r *Mysql) TypeMediumInteger(_ schema.ColumnDefinition) string

func (*Mysql) TypeMediumText

func (r *Mysql) TypeMediumText(_ schema.ColumnDefinition) string

func (*Mysql) TypeMultiLineString added in v0.7.0

func (r *Mysql) TypeMultiLineString(column schema.ColumnDefinition) string

func (*Mysql) TypeMultiPoint added in v0.7.0

func (r *Mysql) TypeMultiPoint(column schema.ColumnDefinition) string

func (*Mysql) TypeMultiPolygon added in v0.7.0

func (r *Mysql) TypeMultiPolygon(column schema.ColumnDefinition) string

func (*Mysql) TypePoint added in v0.7.0

func (r *Mysql) TypePoint(column schema.ColumnDefinition) string

func (*Mysql) TypePolygon added in v0.7.0

func (r *Mysql) TypePolygon(column schema.ColumnDefinition) string

func (*Mysql) TypeSmallInteger

func (r *Mysql) TypeSmallInteger(_ schema.ColumnDefinition) string

func (*Mysql) TypeString

func (r *Mysql) TypeString(column schema.ColumnDefinition) string

func (*Mysql) TypeText

func (r *Mysql) TypeText(_ schema.ColumnDefinition) string

func (*Mysql) TypeTime

func (r *Mysql) TypeTime(column schema.ColumnDefinition) string

func (*Mysql) TypeTimeTz

func (r *Mysql) TypeTimeTz(column schema.ColumnDefinition) string

func (*Mysql) TypeTimestamp

func (r *Mysql) TypeTimestamp(column schema.ColumnDefinition) string

func (*Mysql) TypeTimestampTz

func (r *Mysql) TypeTimestampTz(column schema.ColumnDefinition) string

func (*Mysql) TypeTinyInteger

func (r *Mysql) TypeTinyInteger(_ schema.ColumnDefinition) string

func (*Mysql) TypeTinyText

func (r *Mysql) TypeTinyText(_ schema.ColumnDefinition) string

type Oracle added in v0.7.0

type Oracle struct {
	// contains filtered or unexported fields
}

func NewOracle added in v0.7.0

func NewOracle(tablePrefix string) *Oracle

func (*Oracle) CompileAdd added in v0.7.0

func (r *Oracle) CompileAdd(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileChange added in v0.7.0

func (r *Oracle) CompileChange(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileColumns added in v0.7.0

func (r *Oracle) CompileColumns(schema, table string) string

func (*Oracle) CompileComment added in v0.7.0

func (r *Oracle) CompileComment(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Oracle) CompileCreate added in v0.7.0

func (r *Oracle) CompileCreate(blueprint schema.Blueprint) (string, error)

func (*Oracle) CompileDisableForeignKeyConstraints added in v0.7.0

func (r *Oracle) CompileDisableForeignKeyConstraints() string

func (*Oracle) CompileDrop added in v0.7.0

func (r *Oracle) CompileDrop(blueprint schema.Blueprint) (string, error)

func (*Oracle) CompileDropAllDomains added in v0.7.0

func (r *Oracle) CompileDropAllDomains(_ []string) (string, error)

func (*Oracle) CompileDropAllTables added in v0.7.0

func (r *Oracle) CompileDropAllTables(tables []string) (string, error)

func (*Oracle) CompileDropAllTypes added in v0.7.0

func (r *Oracle) CompileDropAllTypes(_ []string) (string, error)

func (*Oracle) CompileDropAllViews added in v0.7.0

func (r *Oracle) CompileDropAllViews(views []string) (string, error)

func (*Oracle) CompileDropColumn added in v0.7.0

func (r *Oracle) CompileDropColumn(blueprint schema.Blueprint, command *schema.Command) ([]string, error)

func (*Oracle) CompileDropForeign added in v0.7.0

func (r *Oracle) CompileDropForeign(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileDropFullText added in v0.7.0

func (r *Oracle) CompileDropFullText(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileDropIfExists added in v0.7.0

func (r *Oracle) CompileDropIfExists(blueprint schema.Blueprint) (string, error)

func (*Oracle) CompileDropIndex added in v0.7.0

func (r *Oracle) CompileDropIndex(_ schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileDropPrimary added in v0.7.0

func (r *Oracle) CompileDropPrimary(blueprint schema.Blueprint, _ *schema.Command) (string, error)

func (*Oracle) CompileDropUnique added in v0.7.0

func (r *Oracle) CompileDropUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileEnableForeignKeyConstraints added in v0.7.0

func (r *Oracle) CompileEnableForeignKeyConstraints() string

func (*Oracle) CompileForeign added in v0.7.0

func (r *Oracle) CompileForeign(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileForeignKeys added in v0.7.0

func (r *Oracle) CompileForeignKeys(schema, table string) string

func (*Oracle) CompileFullText added in v0.7.0

func (r *Oracle) CompileFullText(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileIndex added in v0.7.0

func (r *Oracle) CompileIndex(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileIndexes added in v0.7.0

func (r *Oracle) CompileIndexes(schema, table string) string

func (*Oracle) CompilePrimary added in v0.7.0

func (r *Oracle) CompilePrimary(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileRename added in v0.7.0

func (r *Oracle) CompileRename(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileRenameColumn added in v0.7.0

func (r *Oracle) CompileRenameColumn(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileRenameIndex added in v0.7.0

func (r *Oracle) CompileRenameIndex(_ schema.Schema, _ schema.Blueprint, command *schema.Command) ([]string, error)

func (*Oracle) CompileTables added in v0.7.0

func (r *Oracle) CompileTables(database string) string

func (*Oracle) CompileTypes added in v0.7.0

func (r *Oracle) CompileTypes() string

func (*Oracle) CompileUnique added in v0.7.0

func (r *Oracle) CompileUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Oracle) CompileViews added in v0.7.0

func (r *Oracle) CompileViews(database string) string

func (*Oracle) GetAttributeCommands added in v0.7.0

func (r *Oracle) GetAttributeCommands() []string

func (*Oracle) ModifyAfter added in v0.7.0

func (r *Oracle) ModifyAfter(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Oracle) ModifyCollation added in v0.7.0

func (r *Oracle) ModifyCollation(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Oracle) ModifyComment added in v0.7.0

func (r *Oracle) ModifyComment(_ schema.Blueprint, _ schema.ColumnDefinition) string

func (*Oracle) ModifyDefault added in v0.7.0

func (r *Oracle) ModifyDefault(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Oracle) ModifyFirst added in v0.7.0

func (r *Oracle) ModifyFirst(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Oracle) ModifyIncrement added in v0.7.0

func (r *Oracle) ModifyIncrement(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Oracle) ModifyNullable added in v0.7.0

func (r *Oracle) ModifyNullable(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Oracle) ModifyOnUpdate added in v0.7.0

func (r *Oracle) ModifyOnUpdate(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Oracle) ModifyUnsigned added in v0.7.0

func (r *Oracle) ModifyUnsigned(_ schema.Blueprint, _ schema.ColumnDefinition) string

func (*Oracle) TypeBigInteger added in v0.7.0

func (r *Oracle) TypeBigInteger(_ schema.ColumnDefinition) string

func (*Oracle) TypeBoolean added in v0.7.0

func (r *Oracle) TypeBoolean(_ schema.ColumnDefinition) string

func (*Oracle) TypeChar added in v0.7.0

func (r *Oracle) TypeChar(column schema.ColumnDefinition) string

func (*Oracle) TypeDate added in v0.7.0

func (r *Oracle) TypeDate(_ schema.ColumnDefinition) string

func (*Oracle) TypeDateTime added in v0.7.0

func (r *Oracle) TypeDateTime(column schema.ColumnDefinition) string

func (*Oracle) TypeDateTimeTz added in v0.7.0

func (r *Oracle) TypeDateTimeTz(column schema.ColumnDefinition) string

func (*Oracle) TypeDecimal added in v0.7.0

func (r *Oracle) TypeDecimal(column schema.ColumnDefinition) string

func (*Oracle) TypeDouble added in v0.7.0

func (r *Oracle) TypeDouble(_ schema.ColumnDefinition) string

func (*Oracle) TypeEnum added in v0.7.0

func (r *Oracle) TypeEnum(column schema.ColumnDefinition) string

func (*Oracle) TypeFloat added in v0.7.0

func (r *Oracle) TypeFloat(column schema.ColumnDefinition) string

func (*Oracle) TypeGeometry added in v0.7.0

func (r *Oracle) TypeGeometry(column schema.ColumnDefinition) string

func (*Oracle) TypeGeometryCollection added in v0.7.0

func (r *Oracle) TypeGeometryCollection(column schema.ColumnDefinition) string

func (*Oracle) TypeInteger added in v0.7.0

func (r *Oracle) TypeInteger(_ schema.ColumnDefinition) string

func (*Oracle) TypeJson added in v0.7.0

func (r *Oracle) TypeJson(_ schema.ColumnDefinition) string

func (*Oracle) TypeJsonb added in v0.7.0

func (r *Oracle) TypeJsonb(_ schema.ColumnDefinition) string

func (*Oracle) TypeLineString added in v0.7.0

func (r *Oracle) TypeLineString(column schema.ColumnDefinition) string

func (*Oracle) TypeLongText added in v0.7.0

func (r *Oracle) TypeLongText(_ schema.ColumnDefinition) string

func (*Oracle) TypeMediumInteger added in v0.7.0

func (r *Oracle) TypeMediumInteger(_ schema.ColumnDefinition) string

func (*Oracle) TypeMediumText added in v0.7.0

func (r *Oracle) TypeMediumText(_ schema.ColumnDefinition) string

func (*Oracle) TypeMultiLineString added in v0.7.0

func (r *Oracle) TypeMultiLineString(column schema.ColumnDefinition) string

func (*Oracle) TypeMultiPoint added in v0.7.0

func (r *Oracle) TypeMultiPoint(column schema.ColumnDefinition) string

func (*Oracle) TypeMultiPolygon added in v0.7.0

func (r *Oracle) TypeMultiPolygon(column schema.ColumnDefinition) string

func (*Oracle) TypePoint added in v0.7.0

func (r *Oracle) TypePoint(column schema.ColumnDefinition) string

func (*Oracle) TypePolygon added in v0.7.0

func (r *Oracle) TypePolygon(column schema.ColumnDefinition) string

func (*Oracle) TypeSmallInteger added in v0.7.0

func (r *Oracle) TypeSmallInteger(_ schema.ColumnDefinition) string

func (*Oracle) TypeString added in v0.7.0

func (r *Oracle) TypeString(column schema.ColumnDefinition) string

func (*Oracle) TypeText added in v0.7.0

func (r *Oracle) TypeText(_ schema.ColumnDefinition) string

func (*Oracle) TypeTime added in v0.7.0

func (r *Oracle) TypeTime(column schema.ColumnDefinition) string

func (*Oracle) TypeTimeTz added in v0.7.0

func (r *Oracle) TypeTimeTz(column schema.ColumnDefinition) string

func (*Oracle) TypeTimestamp added in v0.7.0

func (r *Oracle) TypeTimestamp(column schema.ColumnDefinition) string

func (*Oracle) TypeTimestampTz added in v0.7.0

func (r *Oracle) TypeTimestampTz(column schema.ColumnDefinition) string

func (*Oracle) TypeTinyInteger added in v0.7.0

func (r *Oracle) TypeTinyInteger(_ schema.ColumnDefinition) string

func (*Oracle) TypeTinyText added in v0.7.0

func (r *Oracle) TypeTinyText(_ schema.ColumnDefinition) string

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

func NewPostgres

func NewPostgres(tablePrefix string) *Postgres

func (*Postgres) CompileAdd

func (r *Postgres) CompileAdd(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileChange

func (r *Postgres) CompileChange(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileColumns

func (r *Postgres) CompileColumns(schema, table string) string

func (*Postgres) CompileComment

func (r *Postgres) CompileComment(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileCreate

func (r *Postgres) CompileCreate(blueprint schema.Blueprint) (string, error)

func (*Postgres) CompileDrop

func (r *Postgres) CompileDrop(blueprint schema.Blueprint) (string, error)

func (*Postgres) CompileDropAllDomains

func (r *Postgres) CompileDropAllDomains(domains []string) (string, error)

func (*Postgres) CompileDropAllTables

func (r *Postgres) CompileDropAllTables(tables []string) (string, error)

func (*Postgres) CompileDropAllTypes

func (r *Postgres) CompileDropAllTypes(types []string) (string, error)

func (*Postgres) CompileDropAllViews

func (r *Postgres) CompileDropAllViews(views []string) (string, error)

func (*Postgres) CompileDropColumn

func (r *Postgres) CompileDropColumn(blueprint schema.Blueprint, command *schema.Command) ([]string, error)

func (*Postgres) CompileDropForeign

func (r *Postgres) CompileDropForeign(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileDropFullText

func (r *Postgres) CompileDropFullText(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileDropIfExists

func (r *Postgres) CompileDropIfExists(blueprint schema.Blueprint) (string, error)

func (*Postgres) CompileDropIndex

func (r *Postgres) CompileDropIndex(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileDropPrimary

func (r *Postgres) CompileDropPrimary(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileDropUnique

func (r *Postgres) CompileDropUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileForeign

func (r *Postgres) CompileForeign(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileForeignKeys

func (r *Postgres) CompileForeignKeys(schema, table string) string

func (*Postgres) CompileFullText

func (r *Postgres) CompileFullText(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileIndex

func (r *Postgres) CompileIndex(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileIndexes

func (r *Postgres) CompileIndexes(schema, table string) string

func (*Postgres) CompilePrimary

func (r *Postgres) CompilePrimary(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileRename

func (r *Postgres) CompileRename(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileRenameColumn

func (r *Postgres) CompileRenameColumn(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileRenameIndex

func (r *Postgres) CompileRenameIndex(_ schema.Schema, _ schema.Blueprint, command *schema.Command) ([]string, error)

func (*Postgres) CompileTables

func (r *Postgres) CompileTables(_ string) string

func (*Postgres) CompileTypes

func (r *Postgres) CompileTypes() string

func (*Postgres) CompileUnique

func (r *Postgres) CompileUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Postgres) CompileViews

func (r *Postgres) CompileViews(database string) string

func (*Postgres) EscapeNames

func (r *Postgres) EscapeNames(names []string) ([]string, error)

func (*Postgres) GetAttributeCommands

func (r *Postgres) GetAttributeCommands() []string

func (*Postgres) ModifyCollation

func (r *Postgres) ModifyCollation(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Postgres) ModifyDefault

func (r *Postgres) ModifyDefault(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Postgres) ModifyIncrement

func (r *Postgres) ModifyIncrement(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Postgres) ModifyNullable

func (r *Postgres) ModifyNullable(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Postgres) TypeBigInteger

func (r *Postgres) TypeBigInteger(column schema.ColumnDefinition) string

func (*Postgres) TypeBoolean

func (r *Postgres) TypeBoolean(_ schema.ColumnDefinition) string

func (*Postgres) TypeChar

func (r *Postgres) TypeChar(column schema.ColumnDefinition) string

func (*Postgres) TypeDate

func (r *Postgres) TypeDate(column schema.ColumnDefinition) string

func (*Postgres) TypeDateTime

func (r *Postgres) TypeDateTime(column schema.ColumnDefinition) string

func (*Postgres) TypeDateTimeTz

func (r *Postgres) TypeDateTimeTz(column schema.ColumnDefinition) string

func (*Postgres) TypeDecimal

func (r *Postgres) TypeDecimal(column schema.ColumnDefinition) string

func (*Postgres) TypeDouble

func (r *Postgres) TypeDouble(column schema.ColumnDefinition) string

func (*Postgres) TypeEnum

func (r *Postgres) TypeEnum(column schema.ColumnDefinition) string

func (*Postgres) TypeFloat

func (r *Postgres) TypeFloat(column schema.ColumnDefinition) string

func (*Postgres) TypeGeometry added in v0.7.0

func (r *Postgres) TypeGeometry(column schema.ColumnDefinition) string

func (*Postgres) TypeGeometryCollection added in v0.7.0

func (r *Postgres) TypeGeometryCollection(column schema.ColumnDefinition) string

func (*Postgres) TypeInteger

func (r *Postgres) TypeInteger(column schema.ColumnDefinition) string

func (*Postgres) TypeJson

func (r *Postgres) TypeJson(column schema.ColumnDefinition) string

func (*Postgres) TypeJsonb

func (r *Postgres) TypeJsonb(column schema.ColumnDefinition) string

func (*Postgres) TypeLineString added in v0.7.0

func (r *Postgres) TypeLineString(column schema.ColumnDefinition) string

func (*Postgres) TypeLongText

func (r *Postgres) TypeLongText(column schema.ColumnDefinition) string

func (*Postgres) TypeMediumInteger

func (r *Postgres) TypeMediumInteger(column schema.ColumnDefinition) string

func (*Postgres) TypeMediumText

func (r *Postgres) TypeMediumText(column schema.ColumnDefinition) string

func (*Postgres) TypeMultiLineString added in v0.7.0

func (r *Postgres) TypeMultiLineString(_ schema.ColumnDefinition) string

func (*Postgres) TypeMultiPoint added in v0.7.0

func (r *Postgres) TypeMultiPoint(_ schema.ColumnDefinition) string

func (*Postgres) TypeMultiPolygon added in v0.7.0

func (r *Postgres) TypeMultiPolygon(_ schema.ColumnDefinition) string

func (*Postgres) TypePoint added in v0.7.0

func (r *Postgres) TypePoint(_ schema.ColumnDefinition) string

func (*Postgres) TypePolygon added in v0.7.0

func (r *Postgres) TypePolygon(_ schema.ColumnDefinition) string

func (*Postgres) TypeSmallInteger

func (r *Postgres) TypeSmallInteger(column schema.ColumnDefinition) string

func (*Postgres) TypeString

func (r *Postgres) TypeString(column schema.ColumnDefinition) string

func (*Postgres) TypeText

func (r *Postgres) TypeText(column schema.ColumnDefinition) string

func (*Postgres) TypeTime

func (r *Postgres) TypeTime(column schema.ColumnDefinition) string

func (*Postgres) TypeTimeTz

func (r *Postgres) TypeTimeTz(column schema.ColumnDefinition) string

func (*Postgres) TypeTimestamp

func (r *Postgres) TypeTimestamp(column schema.ColumnDefinition) string

func (*Postgres) TypeTimestampTz

func (r *Postgres) TypeTimestampTz(column schema.ColumnDefinition) string

func (*Postgres) TypeTinyInteger

func (r *Postgres) TypeTinyInteger(column schema.ColumnDefinition) string

func (*Postgres) TypeTinyText

func (r *Postgres) TypeTinyText(column schema.ColumnDefinition) string

type Sqlite

type Sqlite struct {
	// contains filtered or unexported fields
}

func NewSqlite

func NewSqlite(log log.Log, tablePrefix string) *Sqlite

func (*Sqlite) CompileAdd

func (r *Sqlite) CompileAdd(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlite) CompileChange

func (r *Sqlite) CompileChange(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlite) CompileColumns

func (r *Sqlite) CompileColumns(schema, table string) string

func (*Sqlite) CompileComment

func (r *Sqlite) CompileComment(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlite) CompileCreate

func (r *Sqlite) CompileCreate(blueprint schema.Blueprint) (string, error)

func (*Sqlite) CompileDisableWriteableSchema

func (r *Sqlite) CompileDisableWriteableSchema() string

func (*Sqlite) CompileDrop

func (r *Sqlite) CompileDrop(blueprint schema.Blueprint) (string, error)

func (*Sqlite) CompileDropAllDomains

func (r *Sqlite) CompileDropAllDomains(domains []string) (string, error)

func (*Sqlite) CompileDropAllTables

func (r *Sqlite) CompileDropAllTables(tables []string) (string, error)

func (*Sqlite) CompileDropAllTypes

func (r *Sqlite) CompileDropAllTypes(types []string) (string, error)

func (*Sqlite) CompileDropAllViews

func (r *Sqlite) CompileDropAllViews(views []string) (string, error)

func (*Sqlite) CompileDropColumn

func (r *Sqlite) CompileDropColumn(blueprint schema.Blueprint, command *schema.Command) ([]string, error)

func (*Sqlite) CompileDropForeign

func (r *Sqlite) CompileDropForeign(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlite) CompileDropFullText

func (r *Sqlite) CompileDropFullText(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlite) CompileDropIfExists

func (r *Sqlite) CompileDropIfExists(blueprint schema.Blueprint) (string, error)

func (*Sqlite) CompileDropIndex

func (r *Sqlite) CompileDropIndex(_ schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlite) CompileDropPrimary

func (r *Sqlite) CompileDropPrimary(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlite) CompileDropUnique

func (r *Sqlite) CompileDropUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlite) CompileEnableWriteableSchema

func (r *Sqlite) CompileEnableWriteableSchema() string

func (*Sqlite) CompileForeign

func (r *Sqlite) CompileForeign(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlite) CompileForeignKeys

func (r *Sqlite) CompileForeignKeys(_, table string) string

func (*Sqlite) CompileFullText

func (r *Sqlite) CompileFullText(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlite) CompileIndex

func (r *Sqlite) CompileIndex(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlite) CompileIndexes

func (r *Sqlite) CompileIndexes(_, table string) string

func (*Sqlite) CompilePrimary

func (r *Sqlite) CompilePrimary(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlite) CompileRebuild

func (r *Sqlite) CompileRebuild() string

func (*Sqlite) CompileRename

func (r *Sqlite) CompileRename(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlite) CompileRenameColumn

func (r *Sqlite) CompileRenameColumn(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlite) CompileRenameIndex

func (r *Sqlite) CompileRenameIndex(s schema.Schema, blueprint schema.Blueprint, command *schema.Command) ([]string, error)

func (*Sqlite) CompileTables

func (r *Sqlite) CompileTables(database string) string

func (*Sqlite) CompileTypes

func (r *Sqlite) CompileTypes() string

func (*Sqlite) CompileUnique

func (r *Sqlite) CompileUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlite) CompileViews

func (r *Sqlite) CompileViews(database string) string

func (*Sqlite) GetAttributeCommands

func (r *Sqlite) GetAttributeCommands() []string

func (*Sqlite) GetModifiers

func (r *Sqlite) GetModifiers() []func(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Sqlite) ModifyCollation

func (r *Sqlite) ModifyCollation(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Sqlite) ModifyDefault

func (r *Sqlite) ModifyDefault(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Sqlite) ModifyIncrement

func (r *Sqlite) ModifyIncrement(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Sqlite) ModifyNullable

func (r *Sqlite) ModifyNullable(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Sqlite) TypeBigInteger

func (r *Sqlite) TypeBigInteger(column schema.ColumnDefinition) string

func (*Sqlite) TypeBoolean

func (r *Sqlite) TypeBoolean(_ schema.ColumnDefinition) string

func (*Sqlite) TypeChar

func (r *Sqlite) TypeChar(column schema.ColumnDefinition) string

func (*Sqlite) TypeDate

func (r *Sqlite) TypeDate(column schema.ColumnDefinition) string

func (*Sqlite) TypeDateTime

func (r *Sqlite) TypeDateTime(column schema.ColumnDefinition) string

func (*Sqlite) TypeDateTimeTz

func (r *Sqlite) TypeDateTimeTz(column schema.ColumnDefinition) string

func (*Sqlite) TypeDecimal

func (r *Sqlite) TypeDecimal(column schema.ColumnDefinition) string

func (*Sqlite) TypeDouble

func (r *Sqlite) TypeDouble(column schema.ColumnDefinition) string

func (*Sqlite) TypeEnum

func (r *Sqlite) TypeEnum(column schema.ColumnDefinition) string

func (*Sqlite) TypeFloat

func (r *Sqlite) TypeFloat(column schema.ColumnDefinition) string

func (*Sqlite) TypeInteger

func (r *Sqlite) TypeInteger(column schema.ColumnDefinition) string

func (*Sqlite) TypeJson

func (r *Sqlite) TypeJson(column schema.ColumnDefinition) string

func (*Sqlite) TypeJsonb

func (r *Sqlite) TypeJsonb(column schema.ColumnDefinition) string

func (*Sqlite) TypeLongText

func (r *Sqlite) TypeLongText(column schema.ColumnDefinition) string

func (*Sqlite) TypeMediumInteger

func (r *Sqlite) TypeMediumInteger(column schema.ColumnDefinition) string

func (*Sqlite) TypeMediumText

func (r *Sqlite) TypeMediumText(column schema.ColumnDefinition) string

func (*Sqlite) TypeSmallInteger

func (r *Sqlite) TypeSmallInteger(column schema.ColumnDefinition) string

func (*Sqlite) TypeString

func (r *Sqlite) TypeString(column schema.ColumnDefinition) string

func (*Sqlite) TypeText

func (r *Sqlite) TypeText(column schema.ColumnDefinition) string

func (*Sqlite) TypeTime

func (r *Sqlite) TypeTime(column schema.ColumnDefinition) string

func (*Sqlite) TypeTimeTz

func (r *Sqlite) TypeTimeTz(column schema.ColumnDefinition) string

func (*Sqlite) TypeTimestamp

func (r *Sqlite) TypeTimestamp(column schema.ColumnDefinition) string

func (*Sqlite) TypeTimestampTz

func (r *Sqlite) TypeTimestampTz(column schema.ColumnDefinition) string

func (*Sqlite) TypeTinyInteger

func (r *Sqlite) TypeTinyInteger(column schema.ColumnDefinition) string

func (*Sqlite) TypeTinyText

func (r *Sqlite) TypeTinyText(column schema.ColumnDefinition) string

type Sqlserver

type Sqlserver struct {
	// contains filtered or unexported fields
}

func NewSqlserver

func NewSqlserver(tablePrefix string) *Sqlserver

func (*Sqlserver) CompileAdd

func (r *Sqlserver) CompileAdd(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileChange

func (r *Sqlserver) CompileChange(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileColumns

func (r *Sqlserver) CompileColumns(schema, table string) string

func (*Sqlserver) CompileComment

func (r *Sqlserver) CompileComment(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlserver) CompileCreate

func (r *Sqlserver) CompileCreate(blueprint schema.Blueprint) (string, error)

func (*Sqlserver) CompileDrop

func (r *Sqlserver) CompileDrop(blueprint schema.Blueprint) (string, error)

func (*Sqlserver) CompileDropAllDomains

func (r *Sqlserver) CompileDropAllDomains(_ []string) (string, error)

func (*Sqlserver) CompileDropAllForeignKeys

func (r *Sqlserver) CompileDropAllForeignKeys() string

func (*Sqlserver) CompileDropAllTables

func (r *Sqlserver) CompileDropAllTables(_ []string) (string, error)

func (*Sqlserver) CompileDropAllTypes

func (r *Sqlserver) CompileDropAllTypes(_ []string) (string, error)

func (*Sqlserver) CompileDropAllViews

func (r *Sqlserver) CompileDropAllViews(_ []string) (string, error)

func (*Sqlserver) CompileDropColumn

func (r *Sqlserver) CompileDropColumn(blueprint schema.Blueprint, command *schema.Command) ([]string, error)

func (*Sqlserver) CompileDropDefaultConstraint

func (r *Sqlserver) CompileDropDefaultConstraint(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileDropForeign

func (r *Sqlserver) CompileDropForeign(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileDropFullText

func (r *Sqlserver) CompileDropFullText(_ schema.Blueprint, _ *schema.Command) (string, error)

func (*Sqlserver) CompileDropIfExists

func (r *Sqlserver) CompileDropIfExists(blueprint schema.Blueprint) (string, error)

func (*Sqlserver) CompileDropIndex

func (r *Sqlserver) CompileDropIndex(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileDropPrimary

func (r *Sqlserver) CompileDropPrimary(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileDropUnique

func (r *Sqlserver) CompileDropUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileForeign

func (r *Sqlserver) CompileForeign(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileForeignKeys

func (r *Sqlserver) CompileForeignKeys(schema, table string) string

func (*Sqlserver) CompileFullText

func (r *Sqlserver) CompileFullText(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileIndex

func (r *Sqlserver) CompileIndex(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileIndexes

func (r *Sqlserver) CompileIndexes(schema, table string) string

func (*Sqlserver) CompilePrimary

func (r *Sqlserver) CompilePrimary(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileRename

func (r *Sqlserver) CompileRename(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileRenameColumn

func (r *Sqlserver) CompileRenameColumn(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileRenameIndex

func (r *Sqlserver) CompileRenameIndex(_ schema.Schema, blueprint schema.Blueprint, command *schema.Command) ([]string, error)

func (*Sqlserver) CompileTables

func (r *Sqlserver) CompileTables(_ string) string

func (*Sqlserver) CompileTypes

func (r *Sqlserver) CompileTypes() string

func (*Sqlserver) CompileUnique

func (r *Sqlserver) CompileUnique(blueprint schema.Blueprint, command *schema.Command) (string, error)

func (*Sqlserver) CompileViews

func (r *Sqlserver) CompileViews(_ string) string

func (*Sqlserver) GetAttributeCommands

func (r *Sqlserver) GetAttributeCommands() []string

func (*Sqlserver) ModifyDefault

func (r *Sqlserver) ModifyDefault(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Sqlserver) ModifyIncrement

func (r *Sqlserver) ModifyIncrement(blueprint schema.Blueprint, column schema.ColumnDefinition) string

func (*Sqlserver) ModifyNullable

func (r *Sqlserver) ModifyNullable(_ schema.Blueprint, column schema.ColumnDefinition) string

func (*Sqlserver) TypeBigInteger

func (r *Sqlserver) TypeBigInteger(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeBoolean

func (r *Sqlserver) TypeBoolean(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeChar

func (r *Sqlserver) TypeChar(column schema.ColumnDefinition) string

func (*Sqlserver) TypeDate

func (r *Sqlserver) TypeDate(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeDateTime

func (r *Sqlserver) TypeDateTime(column schema.ColumnDefinition) string

func (*Sqlserver) TypeDateTimeTz

func (r *Sqlserver) TypeDateTimeTz(column schema.ColumnDefinition) string

func (*Sqlserver) TypeDecimal

func (r *Sqlserver) TypeDecimal(column schema.ColumnDefinition) string

func (*Sqlserver) TypeDouble

func (r *Sqlserver) TypeDouble(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeEnum

func (r *Sqlserver) TypeEnum(column schema.ColumnDefinition) string

func (*Sqlserver) TypeFloat

func (r *Sqlserver) TypeFloat(column schema.ColumnDefinition) string

func (*Sqlserver) TypeInteger

func (r *Sqlserver) TypeInteger(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeJson

func (r *Sqlserver) TypeJson(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeJsonb

func (r *Sqlserver) TypeJsonb(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeLongText

func (r *Sqlserver) TypeLongText(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeMediumInteger

func (r *Sqlserver) TypeMediumInteger(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeMediumText

func (r *Sqlserver) TypeMediumText(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeSmallInteger

func (r *Sqlserver) TypeSmallInteger(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeString

func (r *Sqlserver) TypeString(column schema.ColumnDefinition) string

func (*Sqlserver) TypeText

func (r *Sqlserver) TypeText(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeTime

func (r *Sqlserver) TypeTime(column schema.ColumnDefinition) string

func (*Sqlserver) TypeTimeTz

func (r *Sqlserver) TypeTimeTz(column schema.ColumnDefinition) string

func (*Sqlserver) TypeTimestamp

func (r *Sqlserver) TypeTimestamp(column schema.ColumnDefinition) string

func (*Sqlserver) TypeTimestampTz

func (r *Sqlserver) TypeTimestampTz(column schema.ColumnDefinition) string

func (*Sqlserver) TypeTinyInteger

func (r *Sqlserver) TypeTinyInteger(_ schema.ColumnDefinition) string

func (*Sqlserver) TypeTinyText

func (r *Sqlserver) TypeTinyText(_ schema.ColumnDefinition) string

type Wrap

type Wrap struct {
	// contains filtered or unexported fields
}

func NewWrap

func NewWrap(driver contractsdatabase.Driver, tablePrefix string) *Wrap

func (*Wrap) Column

func (r *Wrap) Column(column string) (string, error)

func (*Wrap) Columnize

func (r *Wrap) Columnize(columns []string) (string, error)

func (*Wrap) Columns

func (r *Wrap) Columns(columns []string) ([]string, error)

func (*Wrap) GetPrefix

func (r *Wrap) GetPrefix() string

func (*Wrap) IsValidAction

func (r *Wrap) IsValidAction(action string) bool

func (*Wrap) PrefixArray

func (r *Wrap) PrefixArray(prefix string, values []string) []string

func (*Wrap) Quote

func (r *Wrap) Quote(value string) string

func (*Wrap) Quotes

func (r *Wrap) Quotes(value []string) []string

func (*Wrap) Segments

func (r *Wrap) Segments(segments []string) (string, error)

func (*Wrap) Table

func (r *Wrap) Table(table string) (string, error)

func (*Wrap) Value

func (r *Wrap) Value(value string) (string, error)

Jump to

Keyboard shortcuts

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