Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ariga/atlas
/ functions
Functions
7,770 in github.com/ariga/atlas
⨍
Functions
7,770
◇
Types & classes
1,019
↓ 3 callers
Function
IsLiteralBool
IsLiteralBool reports if the given string is a valid literal bool.
sql/internal/sqlx/sqlx.go:572
↓ 3 callers
Method
IsRawExpr
IsRawExpr indicates if the attribute is a RawExpr type.
schemahcl/spec.go:119
↓ 3 callers
Method
IsRef
IsRef indicates if the attribute is a reference type.
schemahcl/spec.go:110
↓ 3 callers
Method
Join_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:16882
↓ 3 callers
Method
LT
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:11952
↓ 3 callers
Method
Loader
Loader returns the state loader for the given scheme.
cmd/atlas/internal/cmdext/cmdext.go:589
↓ 3 callers
Function
LogIntro
LogIntro gathers some meta information from the migration files and stored revisions to log some general information prior to actual execution.
sql/migrate/migrate.go:1272
↓ 3 callers
Method
Login
Login runs the 'login' command.
atlasexec/atlas.go:180
↓ 3 callers
Function
MakeFileFunc
MakeFileFunc returns a function that reads a file from the given base directory.
schemahcl/stdlib.go:578
↓ 3 callers
Function
MakeFileSetFunc
MakeFileSetFunc returns a function that returns the names of all files matching pattern or nil if there is no matching file
schemahcl/stdlib.go:643
↓ 3 callers
Function
MakeGlobFunc
MakeGlobFunc returns a function that returns the names of all files matching pattern or nil if there is no matching file Deprecated: use fileset funct
schemahcl/stdlib.go:607
↓ 3 callers
Method
MaskedErrorText
MaskedErrorText returns the masked versioned of the error, if caused by a statement.
cmd/atlas/internal/cmdlog/cmdlog.go:1213
↓ 3 callers
Method
MaskedText
(s *migrate.Stmt)
cmd/atlas/internal/cmdlog/cmdlog.go:1208
↓ 3 callers
Method
MigrateHash
MigrateHash runs the 'migrate hash' command.
atlasexec/atlas_migrate.go:566
↓ 3 callers
Method
MigratePush
MigratePush runs the 'migrate push' command.
atlasexec/atlas_migrate.go:227
↓ 3 callers
Method
MigrateStatus
MigrateStatus runs the 'migrate status' command.
atlasexec/atlas_migrate.go:419
↓ 3 callers
Method
Mutate
Mutate implements the ent.Mutator interface.
cmd/atlas/internal/migrate/ent/client.go:200
↓ 3 callers
Function
MySQL
MySQL returns a new Config for a MySQL image.
cmd/atlas/internal/docker/docker.go:232
↓ 3 callers
Function
NewDBMateDir
NewDBMateDir returns a new DBMateDir.
sql/sqltool/tool.go:259
↓ 3 callers
Function
NewDecimalColumn
NewDecimalColumn creates a new DecimalType column.
sql/schema/dsl.go:487
↓ 3 callers
Function
NewFlywayDir
NewFlywayDir returns a new FlywayDir.
sql/sqltool/tool.go:329
↓ 3 callers
Function
NewGitChangeDetector
NewGitChangeDetector configures a new GitChangeDetector.
cmd/atlas/internal/migratelint/lint.go:64
↓ 3 callers
Function
NewGooseDir
NewGooseDir returns a new GooseDir.
sql/sqltool/tool.go:152
↓ 3 callers
Function
NewJSONColumn
NewJSONColumn creates a new JSONType column.
sql/schema/dsl.go:566
↓ 3 callers
Function
NewLiquibaseDir
NewLiquibaseDir returns a new LiquibaseDir.
sql/sqltool/tool.go:463
↓ 3 callers
Function
NewRegistry
NewRegistry creates a new *TypeRegistry, registers the provided types and panics if an error occurs.
schemahcl/types.go:143
↓ 3 callers
Function
NewTemplateFormatter
NewTemplateFormatter creates a new Formatter working with the given templates. migrate.NewTemplateFormatter( template.Must(template.New("").Parse(
sql/migrate/dir.go:599
↓ 3 callers
Method
Op
Op returns the operation name.
cmd/atlas/internal/migrate/ent/mutation.go:714
↓ 3 callers
Function
ParseType
ParseType returns the schema.Type value represented by the given raw type. The raw value is expected to follow the format in MySQL information schema.
sql/mysql/convert.go:117
↓ 3 callers
Method
Plan
Plan calculates the migration Plan required for moving the current state (from) state to the next state (to). A StateReader can be a directory, static
sql/migrate/migrate.go:403
↓ 3 callers
Function
RangeAsPos
RangeAsPos builds a schema position from the give HCL range.
schemahcl/spec.go:674
↓ 3 callers
Method
RawExpr
RawExpr extracts the RawExpr from the Attr.
schemahcl/spec.go:212
↓ 3 callers
Function
RawExprValue
RawExprValue is a helper method for constructing a cty.Value that capsules a raw expression.
schemahcl/spec.go:597
↓ 3 callers
Method
RealmRestoreFunc
RealmRestoreFunc returns a function that restores the given realm to its desired state.
sql/postgres/driver.go:239
↓ 3 callers
Function
RedactedURL
RedactedURL returns a URL string with the userinfo redacted.
cmd/atlas/internal/cloudapi/client.go:370
↓ 3 callers
Method
RedactedURL
RedactedURL returns the redacted URL of the given environment at index i.
cmd/atlas/internal/cmdapi/migrate.go:207
↓ 3 callers
Method
Ref
Ref returns the reference to the object.
sql/internal/specutil/convert.go:65
↓ 3 callers
Function
RefAttr
RefAttr is a helper method for constructing *schemahcl.Attr instances that contain a Ref value.
schemahcl/spec.go:547
↓ 3 callers
Function
Register
Register allows drivers to register a constructor function for creating analyzers from the given HCL resource.
sql/sqlcheck/sqlcheck.go:311
↓ 3 callers
Function
Register
Register a fixer with the given name.
cmd/atlas/internal/sqlparse/sqlparse.go:46
↓ 3 callers
Function
RegisterTxOpener
RegisterTxOpener allows registering a custom transaction opener with an optional close function.
sql/sqlclient/client.go:482
↓ 3 callers
Method
Replay
Replay the migration directory and invoke the state to get back the inspection result.
sql/migrate/migrate.go:1064
↓ 3 callers
Method
ReportMigrationSet
ReportMigrationSet reports a set of migration deployments to the Atlas Cloud API.
cmd/atlas/internal/cloudapi/client.go:217
↓ 3 callers
Method
ResetApplied
ResetApplied resets all changes to the "applied" field.
cmd/atlas/internal/migrate/ent/mutation.go:310
↓ 3 callers
Method
ResetExecutionTime
ResetExecutionTime resets all changes to the "execution_time" field.
cmd/atlas/internal/migrate/ent/mutation.go:458
↓ 3 callers
Method
ResetTotal
ResetTotal resets all changes to the "total" field.
cmd/atlas/internal/migrate/ent/mutation.go:366
↓ 3 callers
Method
ResetType
ResetType resets all changes to the "type" field.
cmd/atlas/internal/migrate/ent/mutation.go:254
↓ 3 callers
Function
ReverseChanges
ReverseChanges reverses the order of the changes.
sql/internal/sqlx/sqlx.go:654
↓ 3 callers
Function
RevisionsForClient
RevisionsForClient creates a new RevisionReadWriter for the given sqlclient.Client.
cmd/atlas/internal/migrate/migrate.go:77
↓ 3 callers
Method
Save
Save creates the Revision in the database.
cmd/atlas/internal/migrate/ent/revision_create.go:149
↓ 3 callers
Method
Savepoint_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31215
↓ 3 callers
Method
SchemaPlan
SchemaPlan runs the `schema plan` command.
atlasexec/atlas_schema.go:440
↓ 3 callers
Method
SchemaSpan
SchemaSpan returns the span information for the schema.
sql/sqlcheck/sqlcheck.go:187
↓ 3 callers
Method
Set
Set records revision that was added.
cmd/atlas/internal/cmdlog/cmdlog.go:349
↓ 3 callers
Method
SetApplied
SetApplied sets the "applied" field.
cmd/atlas/internal/migrate/ent/revision_create.go:52
↓ 3 callers
Method
SetComment
SetComment sets or appends the Comment attribute to the table with the given value.
sql/schema/dsl.go:196
↓ 3 callers
Method
SetEnv
SetEnv allows we override the environment variables for the atlas-cli. To append new environment variables to environment from OS, use NewOSEnviron()
atlasexec/atlas.go:159
↓ 3 callers
Method
SetRange
SetRange sets the range of this attribute.
schemahcl/spec.go:398
↓ 3 callers
Function
SetReversible
SetReversible sets the Reversible field to true if all planned changes are reversible.
sql/internal/sqlx/plan.go:79
↓ 3 callers
Method
SetTotal
SetTotal sets the "total" field.
cmd/atlas/internal/migrate/ent/revision_create.go:66
↓ 3 callers
Method
SetType
SetType sets the "type" field.
cmd/atlas/internal/migrate/ent/mutation.go:204
↓ 3 callers
Method
SetType
SetType sets the "type" field.
cmd/atlas/internal/migrate/ent/revision_create.go:38
↓ 3 callers
Function
SetVersion
SetVersion allow cmdapi to set the version of the CLI provided at build time.
cmd/atlas/internal/cloudapi/client.go:383
↓ 3 callers
Method
SpecType
()
sql/schema/exclude.go:184
↓ 3 callers
Method
Step
Step starts a new reporting step.
cmd/atlas/internal/cmdapi/migrate.go:216
↓ 3 callers
Method
StepError
StepError appends step error to the summary.
cmd/atlas/internal/migratelint/lint.go:902
↓ 3 callers
Method
StepLog
StepLog logs a line to the current reporting step.
cmd/atlas/internal/cmdapi/migrate.go:227
↓ 3 callers
Method
Stmts
Stmts returns the set of SQL statements this file holds.
sql/migrate/dir.go:53
↓ 3 callers
Function
StringEnumsAttr
StringEnumsAttr is a helper method for constructing *schemahcl.Attr instances that contain list of elements that their values can be either enum or st
schemahcl/spec.go:612
↓ 3 callers
Method
SupportsEnforceCheck
SupportsEnforceCheck reports if the version supports the ENFORCED option in CHECK constraint syntax.
sql/mysql/internal/mysqlversion/mysqlversion.go:59
↓ 3 callers
Method
SupportsIndexExpr
SupportsIndexExpr reports if the version supports index expressions (functional key part).
sql/mysql/internal/mysqlversion/mysqlversion.go:35
↓ 3 callers
Function
Table
Table converts a sqlspec.Table to a schema.Table. Table conversion is done without converting ForeignKeySpecs into ForeignKeys, as the target tables d
sql/internal/specutil/convert.go:184
↓ 3 callers
Function
TestInputVars
TestInputVars runs a test verifying that the driver's exposed Eval function uses input variables properly.
sql/internal/spectest/spectest.go:44
↓ 3 callers
Function
TestingHome
TestingHome is a helper function for testing that sets the HOME directory to a temporary directory.
cmd/atlas/internal/cmdstate/cmdstate.go:91
↓ 3 callers
Function
TrimViewExtra
TrimViewExtra trims the extra unnecessary characters from the view definition.
sql/internal/sqlx/diff.go:798
↓ 3 callers
Method
Underlying
Underlying returns underlying the expression.
sql/schema/schema.go:623
↓ 3 callers
Function
ValuesEqual
ValuesEqual checks if the 2 string slices are equal (including their order).
sql/internal/sqlx/sqlx.go:222
↓ 3 callers
Method
WhoAmI
WhoAmI runs the 'whoami' command.
atlasexec/atlas.go:199
↓ 3 callers
Method
Window_defn
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:22600
↓ 3 callers
Function
WithBaselineVersion
WithBaselineVersion allows setting the baseline version of the database on the first migration. Hence, all versions up to and including this version a
sql/migrate/migrate.go:622
↓ 3 callers
Function
WithOperatorVersion
WithOperatorVersion sets the operator version to save on the revisions when executing migration files.
sql/migrate/migrate.go:666
↓ 3 callers
Function
WithParser
WithParser configures the registry to use a parsing function for converting a string to a schema.Type.
schemahcl/types.go:90
↓ 3 callers
Function
WithWorkDir
WithWorkDir configures the git working directory for a GitChangeDetector.
cmd/atlas/internal/migratelint/lint.go:84
↓ 3 callers
Method
WrapIndent
WrapIndent is like Wrap but with extra level of indentation.
sql/internal/sqlx/sqlx.go:495
↓ 3 callers
Method
WriteCheckpoint
WriteCheckpoint writes the given checkpoint file to the migration directory.
sql/migrate/dir.go:71
↓ 3 callers
Method
WriteFile
WriteFile writes the file to the temporary directory.
atlasexec/working_dir.go:116
↓ 3 callers
Function
addFlagDryRun
(set *pflag.FlagSet, target *bool)
cmd/atlas/internal/cmdapi/cmdapi.go:353
↓ 3 callers
Function
addFlagExclude
(set *pflag.FlagSet, target *[]string)
cmd/atlas/internal/cmdapi/cmdapi.go:357
↓ 3 callers
Function
addFlagLockTimeout
(set *pflag.FlagSet, target *time.Duration)
cmd/atlas/internal/cmdapi/cmdapi.go:324
↓ 3 callers
Function
addFlagRevisionSchema
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:386
↓ 3 callers
Function
addFlagToURLs
(set *pflag.FlagSet, target *[]string)
cmd/atlas/internal/cmdapi/cmdapi.go:434
↓ 3 callers
Method
addIndexes
(src schema.Change, t *schema.Table, adds ...*schema.AddIndex)
sql/postgres/migrate.go:923
↓ 3 callers
Method
addTable
addTable builds and executes the query for creating a table in a schema.
sql/sqlite/migrate.go:101
↓ 3 callers
Function
applyChanges
(ctx context.Context, client *sqlclient.Client, changes []schema.Change, txMode string)
cmd/atlas/internal/cmdapi/schema.go:139
↓ 3 callers
Function
arrayType
arrayType reports if the given string is an array type (e.g. int[], text[2]), and returns its "udt_name" as it was inspected from the database.
sql/postgres/convert.go:321
↓ 3 callers
Function
attr
(typ *schemahcl.Type, key string)
sql/postgres/sqlspec.go:1027
↓ 3 callers
Function
blockVars
(blocks hclsyntax.Blocks, parentAddr string, defs *blockDef)
schemahcl/context.go:284
↓ 3 callers
Function
bodyVars
(b *hclsyntax.Body)
schemahcl/context.go:479
↓ 3 callers
Function
check
checks writes the CHECK constraint to the builder.
sql/postgres/migrate.go:1264
↓ 3 callers
Method
check
checks writes the CHECK constraint to the builder.
sql/mysql/migrate.go:785
← previous
next →
701–800 of 7,770, ranked by callers