Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type Docker
- func (r *Docker) Build() error
- func (r *Docker) Config() contractsdocker.DatabaseConfig
- func (r *Docker) Database(name string) (contractsdocker.DatabaseDriver, error)
- func (r *Docker) Driver() string
- func (r *Docker) Fresh() error
- func (r *Docker) Image(image contractsdocker.Image)
- func (r *Docker) Ready() error
- func (r *Docker) Reuse(containerID string, port int) error
- func (r *Docker) Shutdown() error
- type Exprs
- type Grammar
- func (r *Grammar) CompileAdd(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileChange(blueprint driver.Blueprint, command *driver.Command) []string
- func (r *Grammar) CompileColumns(_, table string) (string, error)
- func (r *Grammar) CompileComment(_ driver.Blueprint, _ *driver.Command) string
- func (r *Grammar) CompileCreate(blueprint driver.Blueprint) string
- func (r *Grammar) CompileDefault(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileDrop(blueprint driver.Blueprint) string
- func (r *Grammar) CompileDropAllDomains(_ []string) string
- func (r *Grammar) CompileDropAllForeignKeys() string
- func (r *Grammar) CompileDropAllTables(_ string, _ []driver.Table) []string
- func (r *Grammar) CompileDropAllTypes(_ string, _ []driver.Type) []string
- func (r *Grammar) CompileDropAllViews(_ string, _ []driver.View) []string
- func (r *Grammar) CompileDropColumn(blueprint driver.Blueprint, command *driver.Command) []string
- func (r *Grammar) CompileDropDefaultConstraint(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileDropForeign(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileDropFullText(_ driver.Blueprint, _ *driver.Command) string
- func (r *Grammar) CompileDropIfExists(blueprint driver.Blueprint) string
- func (r *Grammar) CompileDropIndex(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileDropPrimary(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileDropUnique(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileForeign(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileForeignKeys(schema, table string) string
- func (r *Grammar) CompileFullText(_ driver.Blueprint, _ *driver.Command) string
- func (r *Grammar) CompileInRandomOrder(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
- func (r *Grammar) CompileIndex(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileIndexes(_, table string) (string, error)
- func (r *Grammar) CompileJsonContains(column string, value any, isNot bool) (string, []any, error)
- func (r *Grammar) CompileJsonContainsKey(column string, isNot bool) string
- func (r *Grammar) CompileJsonLength(column string) string
- func (r *Grammar) CompileJsonSelector(column string) string
- func (r *Grammar) CompileJsonValues(args ...any) []any
- func (r *Grammar) CompileLimit(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
- func (r *Grammar) CompileLockForUpdate(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
- func (r *Grammar) CompileLockForUpdateForGorm() clause.Expression
- func (r *Grammar) CompileOffset(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
- func (r *Grammar) CompileOrderBy(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
- func (r *Grammar) CompilePlaceholderFormat() driver.PlaceholderFormat
- func (r *Grammar) CompilePrimary(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileRandomOrderForGorm() string
- func (r *Grammar) CompileRename(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileRenameColumn(blueprint driver.Blueprint, command *driver.Command, _ []driver.Column) (string, error)
- func (r *Grammar) CompileRenameIndex(blueprint driver.Blueprint, command *driver.Command, _ []driver.Index) []string
- func (r *Grammar) CompileSharedLock(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
- func (r *Grammar) CompileSharedLockForGorm() clause.Expression
- func (r *Grammar) CompileTableComment(_ driver.Blueprint, _ *driver.Command) string
- func (r *Grammar) CompileTables(_ string) string
- func (r *Grammar) CompileTypes() string
- func (r *Grammar) CompileUnique(blueprint driver.Blueprint, command *driver.Command) string
- func (r *Grammar) CompileVersion() string
- func (r *Grammar) CompileViews(_ string) string
- func (r *Grammar) GetAttributeCommands() []string
- func (r *Grammar) ModifyDefault(_ driver.Blueprint, column driver.ColumnDefinition) string
- func (r *Grammar) ModifyIncrement(blueprint driver.Blueprint, column driver.ColumnDefinition) string
- func (r *Grammar) ModifyNullable(_ driver.Blueprint, column driver.ColumnDefinition) string
- func (r *Grammar) TypeBigInteger(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeBoolean(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeChar(column driver.ColumnDefinition) string
- func (r *Grammar) TypeDate(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeDateTime(column driver.ColumnDefinition) string
- func (r *Grammar) TypeDateTimeTz(column driver.ColumnDefinition) string
- func (r *Grammar) TypeDecimal(column driver.ColumnDefinition) string
- func (r *Grammar) TypeDouble(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeEnum(column driver.ColumnDefinition) string
- func (r *Grammar) TypeFloat(column driver.ColumnDefinition) string
- func (r *Grammar) TypeInteger(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeJson(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeJsonb(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeLongText(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeMediumInteger(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeMediumText(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeSmallInteger(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeString(column driver.ColumnDefinition) string
- func (r *Grammar) TypeText(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeTime(column driver.ColumnDefinition) string
- func (r *Grammar) TypeTimeTz(column driver.ColumnDefinition) string
- func (r *Grammar) TypeTimestamp(column driver.ColumnDefinition) string
- func (r *Grammar) TypeTimestampTz(column driver.ColumnDefinition) string
- func (r *Grammar) TypeTinyInteger(_ driver.ColumnDefinition) string
- func (r *Grammar) TypeTinyText(_ driver.ColumnDefinition) string
- type Processor
- func (r Processor) ProcessColumns(dbColumns []driver.DBColumn) []driver.Column
- func (r Processor) ProcessForeignKeys(dbForeignKeys []driver.DBForeignKey) []driver.ForeignKey
- func (r Processor) ProcessIndexes(dbIndexes []driver.DBIndex) []driver.Index
- func (r Processor) ProcessTypes(types []driver.Type) []driver.Type
- type ServiceProvider
- type Sqlserver
- type WithHint
- type Wrap
Constants ¶
View Source
const ( Binding = "goravel.sqlserver" Name = "SQL Server" )
Variables ¶
View Source
var ( FailedToGenerateDSN = errors.New("failed to generate DSN, please check the database configuration") ConfigNotFound = errors.New("not found database configuration") )
View Source
var App foundation.Application
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Connection ¶
func (*Config) Readers ¶
func (r *Config) Readers() []contracts.FullConfig
func (*Config) Writers ¶
func (r *Config) Writers() []contracts.FullConfig
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func NewDocker ¶
func NewDocker(config contracts.ConfigBuilder, database, username, password string) *Docker
func (*Docker) Config ¶
func (r *Docker) Config() contractsdocker.DatabaseConfig
func (*Docker) Database ¶
func (r *Docker) Database(name string) (contractsdocker.DatabaseDriver, error)
func (*Docker) Image ¶
func (r *Docker) Image(image contractsdocker.Image)
type Exprs ¶
type Exprs []clause.Expression
type Grammar ¶
type Grammar struct {
// contains filtered or unexported fields
}
func NewGrammar ¶
func (*Grammar) CompileAdd ¶
func (*Grammar) CompileChange ¶
func (*Grammar) CompileComment ¶
func (*Grammar) CompileDefault ¶
func (*Grammar) CompileDropAllDomains ¶
func (*Grammar) CompileDropAllForeignKeys ¶
func (*Grammar) CompileDropAllTables ¶
func (*Grammar) CompileDropAllTypes ¶
func (*Grammar) CompileDropAllViews ¶
func (*Grammar) CompileDropColumn ¶
func (*Grammar) CompileDropDefaultConstraint ¶
func (*Grammar) CompileDropForeign ¶
func (*Grammar) CompileDropFullText ¶
func (*Grammar) CompileDropIfExists ¶
func (*Grammar) CompileDropIndex ¶
func (*Grammar) CompileDropPrimary ¶
func (*Grammar) CompileDropUnique ¶
func (*Grammar) CompileForeign ¶
func (*Grammar) CompileForeignKeys ¶
func (*Grammar) CompileFullText ¶
func (*Grammar) CompileInRandomOrder ¶
func (r *Grammar) CompileInRandomOrder(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
func (*Grammar) CompileIndex ¶
func (*Grammar) CompileJsonContains ¶
func (*Grammar) CompileJsonContainsKey ¶
func (*Grammar) CompileJsonLength ¶
func (*Grammar) CompileJsonSelector ¶
func (*Grammar) CompileJsonValues ¶
func (*Grammar) CompileLimit ¶
func (r *Grammar) CompileLimit(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
func (*Grammar) CompileLockForUpdate ¶
func (r *Grammar) CompileLockForUpdate(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
func (*Grammar) CompileLockForUpdateForGorm ¶
func (r *Grammar) CompileLockForUpdateForGorm() clause.Expression
func (*Grammar) CompileOffset ¶
func (r *Grammar) CompileOffset(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
func (*Grammar) CompileOrderBy ¶
func (r *Grammar) CompileOrderBy(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
func (*Grammar) CompilePlaceholderFormat ¶
func (r *Grammar) CompilePlaceholderFormat() driver.PlaceholderFormat
func (*Grammar) CompilePrimary ¶
func (*Grammar) CompileRandomOrderForGorm ¶
func (*Grammar) CompileRename ¶
func (*Grammar) CompileRenameColumn ¶
func (*Grammar) CompileRenameIndex ¶
func (*Grammar) CompileSharedLock ¶
func (r *Grammar) CompileSharedLock(builder sq.SelectBuilder, conditions *driver.Conditions) sq.SelectBuilder
func (*Grammar) CompileSharedLockForGorm ¶
func (r *Grammar) CompileSharedLockForGorm() clause.Expression
func (*Grammar) CompileTableComment ¶
func (*Grammar) CompileTables ¶
func (*Grammar) CompileTypes ¶
func (*Grammar) CompileUnique ¶
func (*Grammar) CompileVersion ¶
func (*Grammar) CompileViews ¶
func (*Grammar) GetAttributeCommands ¶
func (*Grammar) ModifyDefault ¶
func (*Grammar) ModifyIncrement ¶
func (*Grammar) ModifyNullable ¶
func (*Grammar) TypeBigInteger ¶
func (r *Grammar) TypeBigInteger(_ driver.ColumnDefinition) string
func (*Grammar) TypeBoolean ¶
func (r *Grammar) TypeBoolean(_ driver.ColumnDefinition) string
func (*Grammar) TypeDateTime ¶
func (r *Grammar) TypeDateTime(column driver.ColumnDefinition) string
func (*Grammar) TypeDateTimeTz ¶
func (r *Grammar) TypeDateTimeTz(column driver.ColumnDefinition) string
func (*Grammar) TypeDecimal ¶
func (r *Grammar) TypeDecimal(column driver.ColumnDefinition) string
func (*Grammar) TypeDouble ¶
func (r *Grammar) TypeDouble(_ driver.ColumnDefinition) string
func (*Grammar) TypeInteger ¶
func (r *Grammar) TypeInteger(_ driver.ColumnDefinition) string
func (*Grammar) TypeLongText ¶
func (r *Grammar) TypeLongText(_ driver.ColumnDefinition) string
func (*Grammar) TypeMediumInteger ¶
func (r *Grammar) TypeMediumInteger(_ driver.ColumnDefinition) string
func (*Grammar) TypeMediumText ¶
func (r *Grammar) TypeMediumText(_ driver.ColumnDefinition) string
func (*Grammar) TypeSmallInteger ¶
func (r *Grammar) TypeSmallInteger(_ driver.ColumnDefinition) string
func (*Grammar) TypeString ¶
func (r *Grammar) TypeString(column driver.ColumnDefinition) string
func (*Grammar) TypeTimeTz ¶
func (r *Grammar) TypeTimeTz(column driver.ColumnDefinition) string
func (*Grammar) TypeTimestamp ¶
func (r *Grammar) TypeTimestamp(column driver.ColumnDefinition) string
func (*Grammar) TypeTimestampTz ¶
func (r *Grammar) TypeTimestampTz(column driver.ColumnDefinition) string
func (*Grammar) TypeTinyInteger ¶
func (r *Grammar) TypeTinyInteger(_ driver.ColumnDefinition) string
func (*Grammar) TypeTinyText ¶
func (r *Grammar) TypeTinyText(_ driver.ColumnDefinition) string
type Processor ¶
type Processor struct { }
func NewProcessor ¶
func NewProcessor() *Processor
func (Processor) ProcessColumns ¶
func (Processor) ProcessForeignKeys ¶
func (r Processor) ProcessForeignKeys(dbForeignKeys []driver.DBForeignKey) []driver.ForeignKey
func (Processor) ProcessIndexes ¶
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (receiver *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (receiver *ServiceProvider) Register(app foundation.Application)
type Sqlserver ¶
type Sqlserver struct {
// contains filtered or unexported fields
}
func NewSqlserver ¶
type WithHint ¶
func (WithHint) ModifyStatement ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.