MCPcopy Create free account

hub / github.com/ariga/atlas-provider-gorm / functions

Functions49 in github.com/ariga/atlas-provider-gorm

↓ 12 callersMethodLoad
Load loads the models and returns the DDL statements representing the schema.
gormschema/gorm.go:143
↓ 12 callersFunctionresetSession
()
gormschema/gorm_test.go:147
↓ 11 callersFunctionNew
New returns a new Loader.
gormschema/gorm.go:99
↓ 11 callersFunctionrequireEqualContent
(t *testing.T, actual, fileName string)
gormschema/gorm_test.go:154
↓ 9 callersMethodString
()
main.go:110
↓ 7 callersMethodRun
()
main.go:49
↓ 5 callersFunctionCreateStmt
CreateStmt accepts raw SQL to create a view or trigger
gormschema/gorm.go:120
↓ 4 callersFunctionWithConfig
WithConfig sets the gorm config.
gormschema/gorm.go:65
↓ 3 callersFunctionWithModelPosition
WithModelPosition sets the model position in the output. The position is used to generate the `-- atlas:pos` directive in the output.
gormschema/gorm.go:92
↓ 2 callersMethodMigrator
Migrator returns a new gorm.Migrator, which can be used to extend the default migrator, helping to create constraints and views ...
gormschema/gorm.go:291
↓ 2 callersFunctionNewTrigger
NewTrigger receives a list of TriggerOption to build a Trigger.
gormschema/gorm.go:108
↓ 2 callersFunctionWithStmtDelimiter
WithStmtDelimiter sets the delimiter for the output. The default delimiter is `;`. This is helpful for SQL Server, which uses the GO keyword as a deli
gormschema/gorm.go:84
↓ 2 callersMethodapply
(*schemaBuilder)
gormschema/gorm.go:38
↓ 2 callersMethodresourceName
(model any)
gormschema/gorm.go:390
↓ 1 callersFunctionBuildStmt
BuildStmt accepts a function with gorm query builder to create a CREATE VIEW statement. With this option, the view's name will be the same as the mode
gormschema/gorm.go:131
↓ 1 callersMethodCreateConstraints
CreateConstraints detects constraints on the given model and creates them using `m.dialectMigrator`.
gormschema/gorm.go:309
↓ 1 callersMethodCreateTriggers
CreateTriggers creates the triggers for the given models.
gormschema/gorm.go:436
↓ 1 callersMethodCreateViews
CreateViews creates the given "view-based" models
gormschema/gorm.go:377
↓ 1 callersMethodTriggers
(dialect string)
internal/testdata/models/pet.go:44
↓ 1 callersMethodViewDef
(dialect string)
gormschema/gorm.go:51
↓ 1 callersFunctionWithJoinTable
WithJoinTable sets up a join table for the given model and field. Deprecated: put the join tables alongside the models in the Load call.
gormschema/gorm.go:73
↓ 1 callersMethoddirectives
(w io.Writer, cm *migrator)
gormschema/gorm.go:257
↓ 1 callersFunctionembedsModel
return gorm.Model from the selector expression
main.go:156
↓ 1 callersFunctiongatherModels
(pkg *packages.Package, view *types.Interface)
main.go:114
↓ 1 callersFunctionindirect
(t reflect.Type)
gormschema/gorm.go:457
↓ 1 callersFunctionisGORMModel
(decl any)
main.go:137
↓ 1 callersMethodorderModels
orderModels places join tables at the end of the list of models (if any), which helps GORM resolve m2m relationships correctly.
gormschema/gorm.go:399
↓ 1 callersMethodsetupJoinTables
setupJoinTables helps to determine custom join tables present in the model list and sets them up.
gormschema/gorm.go:344
MethodHasTable
HasTable always returns `true`. By returning `true`, gorm.Migrator will try to alter the table to add constraints.
gormschema/gorm.go:304
MethodImports
()
main.go:91
FunctionTestBuildTags
(t *testing.T)
main_test.go:63
FunctionTestCustomizeTablesLoad
(t *testing.T)
main_test.go:47
FunctionTestDeterministicOutput
(t *testing.T)
main_test.go:31
FunctionTestLoad
(t *testing.T)
main_test.go:12
FunctionTestMySQLConfig
(t *testing.T)
gormschema/gorm_test.go:63
FunctionTestNonBuildTags
(t *testing.T)
main_test.go:77
FunctionTestPostgreSQLConfig
(t *testing.T)
gormschema/gorm_test.go:39
FunctionTestSQLServerConfig
(t *testing.T)
gormschema/gorm_test.go:121
FunctionTestSQLiteConfig
(t *testing.T)
gormschema/gorm_test.go:16
MethodViewDef
(dialect string)
internal/testdata/customjointable/models.go:34
MethodViewDef
(dialect string)
internal/testdata/models/pet.go:23
MethodViewDef
(dialect string)
internal/testdata/models/user.go:28
Methodapply
(*schemaBuilder)
gormschema/gorm.go:43
Methodapply
(b *schemaBuilder)
gormschema/gorm.go:112
MethodisTriggerOption
()
gormschema/gorm.go:42
MethodisTriggerOption
()
gormschema/gorm.go:117
MethodisViewOption
()
gormschema/gorm.go:37
MethodisViewOption
()
gormschema/gorm.go:116
Functionmain
()
main.go:27