grammars

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 11 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

func (*Mysql) CompileColumns

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

func (*Mysql) CompileComment

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

func (*Mysql) CompileCreate

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

func (*Mysql) CompileDisableForeignKeyConstraints

func (r *Mysql) CompileDisableForeignKeyConstraints() string

func (*Mysql) CompileDrop

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

func (*Mysql) CompileDropAllDomains

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

func (*Mysql) CompileDropAllTables

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

func (*Mysql) CompileDropAllTypes

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

func (*Mysql) CompileDropAllViews

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

func (*Mysql) CompileDropColumn

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

func (*Mysql) CompileDropForeign

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

func (*Mysql) CompileDropFullText

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

func (*Mysql) CompileDropIfExists

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

func (*Mysql) CompileDropIndex

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

func (*Mysql) CompileDropPrimary

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

func (*Mysql) CompileDropUnique

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

func (*Mysql) CompileEnableForeignKeyConstraints

func (r *Mysql) CompileEnableForeignKeyConstraints() string

func (*Mysql) CompileForeign

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

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

func (*Mysql) CompileIndex

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

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

func (*Mysql) CompileRename

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

func (*Mysql) CompileRenameIndex

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

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

func (*Mysql) CompileViews

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

func (*Mysql) GetAttributeCommands

func (r *Mysql) GetAttributeCommands() []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) 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 added in v1.15.3

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) 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) 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) 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 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

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

func (*Postgres) CompileCreate

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

func (*Postgres) CompileDrop

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

func (*Postgres) CompileDropAllDomains

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

func (*Postgres) CompileDropAllTables

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

func (*Postgres) CompileDropAllTypes

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

func (*Postgres) CompileDropAllViews

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

func (*Postgres) CompileDropColumn

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

func (*Postgres) CompileDropForeign

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

func (*Postgres) CompileDropFullText

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

func (*Postgres) CompileDropIfExists

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

func (*Postgres) CompileDropIndex

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

func (*Postgres) CompileDropPrimary

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

func (*Postgres) CompileDropUnique

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

func (*Postgres) CompileForeign

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

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

func (*Postgres) CompileIndex

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

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

func (*Postgres) CompileRename

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

func (*Postgres) CompileRenameIndex

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

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

func (*Postgres) CompileViews

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

func (*Postgres) EscapeNames

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

func (*Postgres) GetAttributeCommands

func (r *Postgres) GetAttributeCommands() []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 added in v1.15.3

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) 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) 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) 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

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

func (*Sqlite) CompileCreate

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

func (*Sqlite) CompileDisableWriteableSchema

func (r *Sqlite) CompileDisableWriteableSchema() string

func (*Sqlite) CompileDrop

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

func (*Sqlite) CompileDropAllDomains

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

func (*Sqlite) CompileDropAllTables

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

func (*Sqlite) CompileDropAllTypes

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

func (*Sqlite) CompileDropAllViews

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

func (*Sqlite) CompileDropColumn

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

func (*Sqlite) CompileDropForeign

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

func (*Sqlite) CompileDropFullText

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

func (*Sqlite) CompileDropIfExists

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

func (*Sqlite) CompileDropIndex

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

func (*Sqlite) CompileDropPrimary

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

func (*Sqlite) CompileDropUnique

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

func (*Sqlite) CompileEnableWriteableSchema

func (r *Sqlite) CompileEnableWriteableSchema() string

func (*Sqlite) CompileForeign

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

func (*Sqlite) CompileForeignKeys

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

func (*Sqlite) CompileFullText

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

func (*Sqlite) CompileIndex

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

func (*Sqlite) CompileIndexes

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

func (*Sqlite) CompilePrimary

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

func (*Sqlite) CompileRebuild

func (r *Sqlite) CompileRebuild() string

func (*Sqlite) CompileRename

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

func (*Sqlite) CompileRenameIndex

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

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

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) 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 added in v1.15.3

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

func (*Sqlserver) CompileColumns

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

func (*Sqlserver) CompileComment

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

func (*Sqlserver) CompileCreate

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

func (*Sqlserver) CompileDrop

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

func (*Sqlserver) CompileDropAllDomains

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

func (*Sqlserver) CompileDropAllForeignKeys

func (r *Sqlserver) CompileDropAllForeignKeys() string

func (*Sqlserver) CompileDropAllTables

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

func (*Sqlserver) CompileDropAllTypes

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

func (*Sqlserver) CompileDropAllViews

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

func (*Sqlserver) CompileDropColumn

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

func (*Sqlserver) CompileDropDefaultConstraint

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

func (*Sqlserver) CompileDropForeign

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

func (*Sqlserver) CompileDropFullText

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

func (*Sqlserver) CompileDropIfExists

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

func (*Sqlserver) CompileDropIndex

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

func (*Sqlserver) CompileDropPrimary

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

func (*Sqlserver) CompileDropUnique

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

func (*Sqlserver) CompileForeign

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

func (*Sqlserver) CompileForeignKeys

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

func (*Sqlserver) CompileFullText

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

func (*Sqlserver) CompileIndex

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

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

func (*Sqlserver) CompileRename

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

func (*Sqlserver) CompileRenameIndex

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

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

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 added in v1.15.3

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

func (*Wrap) Columnize

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

func (*Wrap) Columns

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

func (*Wrap) GetPrefix

func (r *Wrap) GetPrefix() string

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

func (*Wrap) Table

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

func (*Wrap) Value

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

Jump to

Keyboard shortcuts

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