Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ariga/atlas-provider-gorm
/ functions
Functions
49 in github.com/ariga/atlas-provider-gorm
⨍
Functions
49
◇
Types & classes
28
↓ 12 callers
Method
Load
Load loads the models and returns the DDL statements representing the schema.
gormschema/gorm.go:143
↓ 12 callers
Function
resetSession
()
gormschema/gorm_test.go:147
↓ 11 callers
Function
New
New returns a new Loader.
gormschema/gorm.go:99
↓ 11 callers
Function
requireEqualContent
(t *testing.T, actual, fileName string)
gormschema/gorm_test.go:154
↓ 9 callers
Method
String
()
main.go:110
↓ 7 callers
Method
Run
()
main.go:49
↓ 5 callers
Function
CreateStmt
CreateStmt accepts raw SQL to create a view or trigger
gormschema/gorm.go:120
↓ 4 callers
Function
WithConfig
WithConfig sets the gorm config.
gormschema/gorm.go:65
↓ 3 callers
Function
WithModelPosition
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 callers
Method
Migrator
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 callers
Function
NewTrigger
NewTrigger receives a list of TriggerOption to build a Trigger.
gormschema/gorm.go:108
↓ 2 callers
Function
WithStmtDelimiter
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 callers
Method
apply
(*schemaBuilder)
gormschema/gorm.go:38
↓ 2 callers
Method
resourceName
(model any)
gormschema/gorm.go:390
↓ 1 callers
Function
BuildStmt
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 callers
Method
CreateConstraints
CreateConstraints detects constraints on the given model and creates them using `m.dialectMigrator`.
gormschema/gorm.go:309
↓ 1 callers
Method
CreateTriggers
CreateTriggers creates the triggers for the given models.
gormschema/gorm.go:436
↓ 1 callers
Method
CreateViews
CreateViews creates the given "view-based" models
gormschema/gorm.go:377
↓ 1 callers
Method
Triggers
(dialect string)
internal/testdata/models/pet.go:44
↓ 1 callers
Method
ViewDef
(dialect string)
gormschema/gorm.go:51
↓ 1 callers
Function
WithJoinTable
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 callers
Method
directives
(w io.Writer, cm *migrator)
gormschema/gorm.go:257
↓ 1 callers
Function
embedsModel
return gorm.Model from the selector expression
main.go:156
↓ 1 callers
Function
gatherModels
(pkg *packages.Package, view *types.Interface)
main.go:114
↓ 1 callers
Function
indirect
(t reflect.Type)
gormschema/gorm.go:457
↓ 1 callers
Function
isGORMModel
(decl any)
main.go:137
↓ 1 callers
Method
orderModels
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 callers
Method
setupJoinTables
setupJoinTables helps to determine custom join tables present in the model list and sets them up.
gormschema/gorm.go:344
Method
HasTable
HasTable always returns `true`. By returning `true`, gorm.Migrator will try to alter the table to add constraints.
gormschema/gorm.go:304
Method
Imports
()
main.go:91
Function
TestBuildTags
(t *testing.T)
main_test.go:63
Function
TestCustomizeTablesLoad
(t *testing.T)
main_test.go:47
Function
TestDeterministicOutput
(t *testing.T)
main_test.go:31
Function
TestLoad
(t *testing.T)
main_test.go:12
Function
TestMySQLConfig
(t *testing.T)
gormschema/gorm_test.go:63
Function
TestNonBuildTags
(t *testing.T)
main_test.go:77
Function
TestPostgreSQLConfig
(t *testing.T)
gormschema/gorm_test.go:39
Function
TestSQLServerConfig
(t *testing.T)
gormschema/gorm_test.go:121
Function
TestSQLiteConfig
(t *testing.T)
gormschema/gorm_test.go:16
Method
ViewDef
(dialect string)
internal/testdata/customjointable/models.go:34
Method
ViewDef
(dialect string)
internal/testdata/models/pet.go:23
Method
ViewDef
(dialect string)
internal/testdata/models/user.go:28
Method
apply
(*schemaBuilder)
gormschema/gorm.go:43
Method
apply
(b *schemaBuilder)
gormschema/gorm.go:112
Method
isTriggerOption
()
gormschema/gorm.go:42
Method
isTriggerOption
()
gormschema/gorm.go:117
Method
isViewOption
()
gormschema/gorm.go:37
Method
isViewOption
()
gormschema/gorm.go:116
Function
main
()
main.go:27