MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 3 callersFunctionIsLiteralBool
IsLiteralBool reports if the given string is a valid literal bool.
sql/internal/sqlx/sqlx.go:572
↓ 3 callersMethodIsRawExpr
IsRawExpr indicates if the attribute is a RawExpr type.
schemahcl/spec.go:119
↓ 3 callersMethodIsRef
IsRef indicates if the attribute is a reference type.
schemahcl/spec.go:110
↓ 3 callersMethodJoin_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:16882
↓ 3 callersMethodLT
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:11952
↓ 3 callersMethodLoader
Loader returns the state loader for the given scheme.
cmd/atlas/internal/cmdext/cmdext.go:589
↓ 3 callersFunctionLogIntro
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 callersMethodLogin
Login runs the 'login' command.
atlasexec/atlas.go:180
↓ 3 callersFunctionMakeFileFunc
MakeFileFunc returns a function that reads a file from the given base directory.
schemahcl/stdlib.go:578
↓ 3 callersFunctionMakeFileSetFunc
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 callersFunctionMakeGlobFunc
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 callersMethodMaskedErrorText
MaskedErrorText returns the masked versioned of the error, if caused by a statement.
cmd/atlas/internal/cmdlog/cmdlog.go:1213
↓ 3 callersMethodMaskedText
(s *migrate.Stmt)
cmd/atlas/internal/cmdlog/cmdlog.go:1208
↓ 3 callersMethodMigrateHash
MigrateHash runs the 'migrate hash' command.
atlasexec/atlas_migrate.go:566
↓ 3 callersMethodMigratePush
MigratePush runs the 'migrate push' command.
atlasexec/atlas_migrate.go:227
↓ 3 callersMethodMigrateStatus
MigrateStatus runs the 'migrate status' command.
atlasexec/atlas_migrate.go:419
↓ 3 callersMethodMutate
Mutate implements the ent.Mutator interface.
cmd/atlas/internal/migrate/ent/client.go:200
↓ 3 callersFunctionMySQL
MySQL returns a new Config for a MySQL image.
cmd/atlas/internal/docker/docker.go:232
↓ 3 callersFunctionNewDBMateDir
NewDBMateDir returns a new DBMateDir.
sql/sqltool/tool.go:259
↓ 3 callersFunctionNewDecimalColumn
NewDecimalColumn creates a new DecimalType column.
sql/schema/dsl.go:487
↓ 3 callersFunctionNewFlywayDir
NewFlywayDir returns a new FlywayDir.
sql/sqltool/tool.go:329
↓ 3 callersFunctionNewGitChangeDetector
NewGitChangeDetector configures a new GitChangeDetector.
cmd/atlas/internal/migratelint/lint.go:64
↓ 3 callersFunctionNewGooseDir
NewGooseDir returns a new GooseDir.
sql/sqltool/tool.go:152
↓ 3 callersFunctionNewJSONColumn
NewJSONColumn creates a new JSONType column.
sql/schema/dsl.go:566
↓ 3 callersFunctionNewLiquibaseDir
NewLiquibaseDir returns a new LiquibaseDir.
sql/sqltool/tool.go:463
↓ 3 callersFunctionNewRegistry
NewRegistry creates a new *TypeRegistry, registers the provided types and panics if an error occurs.
schemahcl/types.go:143
↓ 3 callersFunctionNewTemplateFormatter
NewTemplateFormatter creates a new Formatter working with the given templates. migrate.NewTemplateFormatter( template.Must(template.New("").Parse(
sql/migrate/dir.go:599
↓ 3 callersMethodOp
Op returns the operation name.
cmd/atlas/internal/migrate/ent/mutation.go:714
↓ 3 callersFunctionParseType
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 callersMethodPlan
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 callersFunctionRangeAsPos
RangeAsPos builds a schema position from the give HCL range.
schemahcl/spec.go:674
↓ 3 callersMethodRawExpr
RawExpr extracts the RawExpr from the Attr.
schemahcl/spec.go:212
↓ 3 callersFunctionRawExprValue
RawExprValue is a helper method for constructing a cty.Value that capsules a raw expression.
schemahcl/spec.go:597
↓ 3 callersMethodRealmRestoreFunc
RealmRestoreFunc returns a function that restores the given realm to its desired state.
sql/postgres/driver.go:239
↓ 3 callersFunctionRedactedURL
RedactedURL returns a URL string with the userinfo redacted.
cmd/atlas/internal/cloudapi/client.go:370
↓ 3 callersMethodRedactedURL
RedactedURL returns the redacted URL of the given environment at index i.
cmd/atlas/internal/cmdapi/migrate.go:207
↓ 3 callersMethodRef
Ref returns the reference to the object.
sql/internal/specutil/convert.go:65
↓ 3 callersFunctionRefAttr
RefAttr is a helper method for constructing *schemahcl.Attr instances that contain a Ref value.
schemahcl/spec.go:547
↓ 3 callersFunctionRegister
Register allows drivers to register a constructor function for creating analyzers from the given HCL resource.
sql/sqlcheck/sqlcheck.go:311
↓ 3 callersFunctionRegister
Register a fixer with the given name.
cmd/atlas/internal/sqlparse/sqlparse.go:46
↓ 3 callersFunctionRegisterTxOpener
RegisterTxOpener allows registering a custom transaction opener with an optional close function.
sql/sqlclient/client.go:482
↓ 3 callersMethodReplay
Replay the migration directory and invoke the state to get back the inspection result.
sql/migrate/migrate.go:1064
↓ 3 callersMethodReportMigrationSet
ReportMigrationSet reports a set of migration deployments to the Atlas Cloud API.
cmd/atlas/internal/cloudapi/client.go:217
↓ 3 callersMethodResetApplied
ResetApplied resets all changes to the "applied" field.
cmd/atlas/internal/migrate/ent/mutation.go:310
↓ 3 callersMethodResetExecutionTime
ResetExecutionTime resets all changes to the "execution_time" field.
cmd/atlas/internal/migrate/ent/mutation.go:458
↓ 3 callersMethodResetTotal
ResetTotal resets all changes to the "total" field.
cmd/atlas/internal/migrate/ent/mutation.go:366
↓ 3 callersMethodResetType
ResetType resets all changes to the "type" field.
cmd/atlas/internal/migrate/ent/mutation.go:254
↓ 3 callersFunctionReverseChanges
ReverseChanges reverses the order of the changes.
sql/internal/sqlx/sqlx.go:654
↓ 3 callersFunctionRevisionsForClient
RevisionsForClient creates a new RevisionReadWriter for the given sqlclient.Client.
cmd/atlas/internal/migrate/migrate.go:77
↓ 3 callersMethodSave
Save creates the Revision in the database.
cmd/atlas/internal/migrate/ent/revision_create.go:149
↓ 3 callersMethodSavepoint_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31215
↓ 3 callersMethodSchemaPlan
SchemaPlan runs the `schema plan` command.
atlasexec/atlas_schema.go:440
↓ 3 callersMethodSchemaSpan
SchemaSpan returns the span information for the schema.
sql/sqlcheck/sqlcheck.go:187
↓ 3 callersMethodSet
Set records revision that was added.
cmd/atlas/internal/cmdlog/cmdlog.go:349
↓ 3 callersMethodSetApplied
SetApplied sets the "applied" field.
cmd/atlas/internal/migrate/ent/revision_create.go:52
↓ 3 callersMethodSetComment
SetComment sets or appends the Comment attribute to the table with the given value.
sql/schema/dsl.go:196
↓ 3 callersMethodSetEnv
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 callersMethodSetRange
SetRange sets the range of this attribute.
schemahcl/spec.go:398
↓ 3 callersFunctionSetReversible
SetReversible sets the Reversible field to true if all planned changes are reversible.
sql/internal/sqlx/plan.go:79
↓ 3 callersMethodSetTotal
SetTotal sets the "total" field.
cmd/atlas/internal/migrate/ent/revision_create.go:66
↓ 3 callersMethodSetType
SetType sets the "type" field.
cmd/atlas/internal/migrate/ent/mutation.go:204
↓ 3 callersMethodSetType
SetType sets the "type" field.
cmd/atlas/internal/migrate/ent/revision_create.go:38
↓ 3 callersFunctionSetVersion
SetVersion allow cmdapi to set the version of the CLI provided at build time.
cmd/atlas/internal/cloudapi/client.go:383
↓ 3 callersMethodSpecType
()
sql/schema/exclude.go:184
↓ 3 callersMethodStep
Step starts a new reporting step.
cmd/atlas/internal/cmdapi/migrate.go:216
↓ 3 callersMethodStepError
StepError appends step error to the summary.
cmd/atlas/internal/migratelint/lint.go:902
↓ 3 callersMethodStepLog
StepLog logs a line to the current reporting step.
cmd/atlas/internal/cmdapi/migrate.go:227
↓ 3 callersMethodStmts
Stmts returns the set of SQL statements this file holds.
sql/migrate/dir.go:53
↓ 3 callersFunctionStringEnumsAttr
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 callersMethodSupportsEnforceCheck
SupportsEnforceCheck reports if the version supports the ENFORCED option in CHECK constraint syntax.
sql/mysql/internal/mysqlversion/mysqlversion.go:59
↓ 3 callersMethodSupportsIndexExpr
SupportsIndexExpr reports if the version supports index expressions (functional key part).
sql/mysql/internal/mysqlversion/mysqlversion.go:35
↓ 3 callersFunctionTable
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 callersFunctionTestInputVars
TestInputVars runs a test verifying that the driver's exposed Eval function uses input variables properly.
sql/internal/spectest/spectest.go:44
↓ 3 callersFunctionTestingHome
TestingHome is a helper function for testing that sets the HOME directory to a temporary directory.
cmd/atlas/internal/cmdstate/cmdstate.go:91
↓ 3 callersFunctionTrimViewExtra
TrimViewExtra trims the extra unnecessary characters from the view definition.
sql/internal/sqlx/diff.go:798
↓ 3 callersMethodUnderlying
Underlying returns underlying the expression.
sql/schema/schema.go:623
↓ 3 callersFunctionValuesEqual
ValuesEqual checks if the 2 string slices are equal (including their order).
sql/internal/sqlx/sqlx.go:222
↓ 3 callersMethodWhoAmI
WhoAmI runs the 'whoami' command.
atlasexec/atlas.go:199
↓ 3 callersMethodWindow_defn
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:22600
↓ 3 callersFunctionWithBaselineVersion
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 callersFunctionWithOperatorVersion
WithOperatorVersion sets the operator version to save on the revisions when executing migration files.
sql/migrate/migrate.go:666
↓ 3 callersFunctionWithParser
WithParser configures the registry to use a parsing function for converting a string to a schema.Type.
schemahcl/types.go:90
↓ 3 callersFunctionWithWorkDir
WithWorkDir configures the git working directory for a GitChangeDetector.
cmd/atlas/internal/migratelint/lint.go:84
↓ 3 callersMethodWrapIndent
WrapIndent is like Wrap but with extra level of indentation.
sql/internal/sqlx/sqlx.go:495
↓ 3 callersMethodWriteCheckpoint
WriteCheckpoint writes the given checkpoint file to the migration directory.
sql/migrate/dir.go:71
↓ 3 callersMethodWriteFile
WriteFile writes the file to the temporary directory.
atlasexec/working_dir.go:116
↓ 3 callersFunctionaddFlagDryRun
(set *pflag.FlagSet, target *bool)
cmd/atlas/internal/cmdapi/cmdapi.go:353
↓ 3 callersFunctionaddFlagExclude
(set *pflag.FlagSet, target *[]string)
cmd/atlas/internal/cmdapi/cmdapi.go:357
↓ 3 callersFunctionaddFlagLockTimeout
(set *pflag.FlagSet, target *time.Duration)
cmd/atlas/internal/cmdapi/cmdapi.go:324
↓ 3 callersFunctionaddFlagRevisionSchema
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:386
↓ 3 callersFunctionaddFlagToURLs
(set *pflag.FlagSet, target *[]string)
cmd/atlas/internal/cmdapi/cmdapi.go:434
↓ 3 callersMethodaddIndexes
(src schema.Change, t *schema.Table, adds ...*schema.AddIndex)
sql/postgres/migrate.go:923
↓ 3 callersMethodaddTable
addTable builds and executes the query for creating a table in a schema.
sql/sqlite/migrate.go:101
↓ 3 callersFunctionapplyChanges
(ctx context.Context, client *sqlclient.Client, changes []schema.Change, txMode string)
cmd/atlas/internal/cmdapi/schema.go:139
↓ 3 callersFunctionarrayType
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 callersFunctionattr
(typ *schemahcl.Type, key string)
sql/postgres/sqlspec.go:1027
↓ 3 callersFunctionblockVars
(blocks hclsyntax.Blocks, parentAddr string, defs *blockDef)
schemahcl/context.go:284
↓ 3 callersFunctionbodyVars
(b *hclsyntax.Body)
schemahcl/context.go:479
↓ 3 callersFunctioncheck
checks writes the CHECK constraint to the builder.
sql/postgres/migrate.go:1264
↓ 3 callersMethodcheck
checks writes the CHECK constraint to the builder.
sql/mysql/migrate.go:785
← previousnext →701–800 of 7,770, ranked by callers