MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 2 callersFunctionisURL
isURL returns true if the given string is an Atlas URL with a scheme.
cmd/atlas/internal/cmdapi/migrate.go:1606
↓ 2 callersFunctionjsonDecodeErr
(fn func([]*T, string) error)
atlasexec/atlas.go:555
↓ 2 callersFunctionlabels
(r *Resource)
schemahcl/schemahcl.go:833
↓ 2 callersMethodloadRealm
()
internal/integration/sqlite_test.go:819
↓ 2 callersMethodloadTable
(name string)
internal/integration/sqlite_test.go:836
↓ 2 callersMethodloadTable
(name string)
internal/integration/mysql_test.go:1493
↓ 2 callersMethodloadTable
(name string)
internal/integration/postgres_test.go:1641
↓ 2 callersMethodloadTable
(name string)
internal/integration/cockroach_test.go:826
↓ 2 callersFunctionlogApply
(cmd *cobra.Command, w io.Writer, flags migrateApplyFlags, r *cmdlog.MigrateApply)
cmd/atlas/internal/cmdapi/migrate.go:470
↓ 2 callersFunctionmaskNoPlan
maskNoPlan masks ErrNoPlan errors.
cmd/atlas/internal/cmdapi/migrate.go:603
↓ 2 callersFunctionmatchErr
(ts *testscript.TestScript, err error, p string)
internal/integration/script_test.go:751
↓ 2 callersFunctionmatchFK
matchFK reports if the foreign-key matches the given attributes.
sql/sqlite/inspect.go:582
↓ 2 callersFunctionmayExtend
mayExtend the given collation/charset map from information schema.
sql/mysql/internal/mysqlversion/mysqlversion.go:130
↓ 2 callersFunctionmayParse
mayParse will parse the file in path if it is an HCL file. If the file is an Atlas project file an error is returned.
cmd/atlas/internal/cmdext/reader.go:356
↓ 2 callersFunctionmaySetLoginContext
(*cobra.Command, *Project)
cmd/atlas/internal/cmdapi/cmdapi.go:1130
↓ 2 callersMethodmaySetSchemaQualifier
maySetSchemaQualifier sets the schema on the atlas_schema_revisions table for cases the migration should use qualified identifiers due to some limitat
cmd/atlas/internal/migrate/migrate.go:293
↓ 2 callersMethodmerge
merge merges the doc d1 into d.
sql/postgres/sqlspec.go:124
↓ 2 callersFunctionmigrateApplyRun
migrateApplyRun represents the 'atlas migrate apply' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:1717
↓ 2 callersFunctionmigrateSchema
(t TestingT, c *ent.Client, o *options)
cmd/atlas/internal/migrate/ent/enttest/enttest.go:78
↓ 2 callersFunctionmigrateStatusCmd
migrateStatusCmd represents the 'atlas migrate status' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:1087
↓ 2 callersFunctionmodeSchemaOrAll
modeSchemaOrAll returns the inspect mode based on the exclude patterns.
sql/internal/sqlx/sqlx.go:251
↓ 2 callersFunctionnewListener
(t *testing.T, handler func(c net.Conn))
internal/integration/integration_test.go:105
↓ 2 callersFunctionnewOptions
(opts []Option)
cmd/atlas/internal/migrate/ent/enttest/enttest.go:51
↓ 2 callersMethodnext
next returns the next state of the database after executing the statements in the file. The changes detected by the statements are attached to the fil
cmd/atlas/internal/migratelint/lint.go:338
↓ 2 callersMethodnextStmts
nextStmts is a version of "next" but accepts the statements to execute.
cmd/atlas/internal/migratelint/lint.go:347
↓ 2 callersMethodnormalize
(table *schema.Table)
sql/postgres/crdb.go:94
↓ 2 callersFunctionnormalizeRealm
(*schema.Realm)
sql/postgres/driver.go:752
↓ 2 callersFunctionnullsNotDistinct
nullsNotDistinct handles the NULLS [NOT] DISTINCT clause for indexes.
sql/postgres/migrate.go:1375
↓ 2 callersMethodopenClient
openClient allows opening environment-aware clients.
cmd/atlas/internal/cmdapi/cmdapi.go:1145
↓ 2 callersFunctionopener
opener for the given driver name.
sql/mysql/driver.go:102
↓ 2 callersMethodparseParams
parseParams parses index class parameters defined in HCL or returned from the database. For example: '{k=v}', '(k1=v1,k2=v2)'.
sql/postgres/inspect.go:1382
↓ 2 callersFunctionparseV
parseV returns a user facing version and release notes url
cmd/atlas/internal/cmdapi/cmdapi.go:176
↓ 2 callersMethodpartsChange
(fromI, toI *schema.Index, renames map[string]string)
sql/internal/sqlx/diff.go:439
↓ 2 callersMethodpatchObjects
(objs []schema.Object, prefix ...string)
sql/internal/sqlx/dev.go:231
↓ 2 callersMethodpatchSchema
pathSchema fixes: https://github.com/cockroachdb/cockroach/issues/82040.
sql/postgres/crdb.go:34
↓ 2 callersMethodpatchSchema
(ctx context.Context, s *schema.Schema)
sql/mysql/tidb.go:142
↓ 2 callersMethodpatchSchema
(s *schema.Schema)
sql/internal/sqlx/dev.go:249
↓ 2 callersMethodplan
(ctx context.Context, name string, to StateReader, realmScope bool)
sql/migrate/migrate.go:413
↓ 2 callersFunctionpriority
priority computes the priority of each change. TiDB does not support multischema ALTERs (i.e. multiple changes in a single ALTER statement). Therefor
sql/mysql/tidb.go:36
↓ 2 callersFunctionpromptUser
(cmd *cobra.Command)
cmd/atlas/internal/cmdapi/schema.go:502
↓ 2 callersFunctionputShow
(t *schema.Table)
sql/mysql/inspect.go:966
↓ 2 callersMethodputTable
(t *schema.Table, tk string)
sql/internal/sqlx/dev.go:182
↓ 2 callersMethodquerySpec
()
cmd/atlas/internal/migrate/ent/revision_query.go:376
↓ 2 callersMethodrealm
()
internal/integration/sqlite_test.go:902
↓ 2 callersMethodrealm
()
internal/integration/mysql_test.go:1377
↓ 2 callersMethodrealm
()
internal/integration/postgres_test.go:1708
↓ 2 callersMethodrealm
()
internal/integration/cockroach_test.go:893
↓ 2 callersFunctionremoved
(line, total, pos int, file string)
sql/migrate/dir_test.go:660
↓ 2 callersFunctionrepeatFlag
repeatFlag repeats the flag for each value.
atlasexec/atlas.go:572
↓ 2 callersFunctionreplaceDBURL
(env *testscript.Env, url string)
internal/integration/script_test.go:118
↓ 2 callersFunctionrequireEqualRevision
(t *testing.T, expected, actual *migrate.Revision)
sql/migrate/migrate_test.go:781
↓ 2 callersFunctionrevisionSchemaName
(c *sqlclient.Client, flag string)
cmd/atlas/internal/cmdapi/migrate.go:1289
↓ 2 callersMethodrsearch
rsearch is the reversed version of search. It returns the index of the last call to f that returns true, or -1.
sql/schema/migrate.go:550
↓ 2 callersFunctionrunCheck
(ctx context.Context, vc *vercheck.VerChecker, version string)
cmd/atlas/main.go:119
↓ 2 callersMethodrunErr
(err error, stdout, stderr interface{ String() string })
atlasexec/atlas.go:363
↓ 2 callersFunctionscanExpr
scanExpr scans the expression string (wrapped with parens) until its end in the given string. e.g. "(a+1), c int ...".
sql/sqlite/inspect.go:625
↓ 2 callersFunctionscanWithInterceptors
(ctx context.Context, rootQuery Q1, selectOrGroup Q2, inters []Interceptor, v any)
cmd/atlas/internal/migrate/ent/ent.go:577
↓ 2 callersFunctionschemaApplyRun
(cmd *cobra.Command, flags schemaApplyFlags, env *Env)
cmd/atlas/internal/cmdapi/cmdapi.go:936
↓ 2 callersFunctionschemaCleanCmd
schemaCleanCmd represents the 'atlas schema clean' subcommand.
cmd/atlas/internal/cmdapi/schema.go:182
↓ 2 callersMethodschemaDiff
(from, to *schema.Schema, opts *schema.DiffOptions)
sql/internal/sqlx/diff.go:170
↓ 2 callersFunctionschemaFlagsFromConfig
(cmd *cobra.Command)
cmd/atlas/internal/cmdapi/schema.go:366
↓ 2 callersFunctionschemaFmtCmd
schemaFmtCmd represents the 'atlas schema fmt' subcommand.
cmd/atlas/internal/cmdapi/schema.go:295
↓ 2 callersFunctionschemaSpec
schemaSpec converts from a concrete Postgres schema to Atlas specification.
sql/postgres/sqlspec.go:700
↓ 2 callersMethodschemas
schemas returns the list of the schemas in the database.
sql/postgres/inspect.go:724
↓ 2 callersMethodschemas
schemas returns the list of the schemas in the database.
sql/mysql/inspect.go:106
↓ 2 callersFunctionselectScheme
selectScheme validates the scheme of the provided to urls and returns the selected url scheme. Currently, all URLs must be of the same scheme, and onl
cmd/atlas/internal/cmdapi/migrate.go:1481
↓ 2 callersMethodsetDelim
(d string)
sql/migrate/lex.go:523
↓ 2 callersFunctionsetLocalVars
setLocalVars extends the context with the local block variables (references) so they can be referenced in later stages. For example, an index block ma
schemahcl/schemahcl.go:573
↓ 2 callersFunctionsetupScript
(env *testscript.Env, db *sql.DB, createCmd, dropCmd string, open func(testing.TB, string) migrate.Driver)
internal/integration/script_test.go:145
↓ 2 callersFunctionsimilarCheck
similarCheck returns a CHECK by its constraints name or expression.
sql/internal/sqlx/diff.go:743
↓ 2 callersMethodsqlQuery
(ctx context.Context)
cmd/atlas/internal/migrate/ent/revision_query.go:416
↓ 2 callersFunctionsqlitedb
(t *testing.T, seed string)
atlasexec/atlas_test.go:193
↓ 2 callersFunctionstateReaderHCL
stateReaderHCL is shared between StateReaderHCL and "hcl_schema" datasource.
cmd/atlas/internal/cmdext/reader.go:140
↓ 2 callersFunctionstateSchemaSQL
stateSchemaSQL wraps stateReaderSQL for SQL schema files or directories to control errors when replay/read fails.
cmd/atlas/internal/cmdext/reader.go:71
↓ 2 callersFunctionsummary
(cmd *cobra.Command, c *sqlclient.Client, changes []schema.Change, t *template.Template)
cmd/atlas/internal/cmdapi/cmdapi.go:1112
↓ 2 callersFunctionsupportsCharset
supportsCharset reports if the given type supports the CHARSET and COLLATE clauses. See: https://dev.mysql.com/doc/refman/8.0/en/charset-column.html
sql/mysql/migrate.go:797
↓ 2 callersFunctiontable
table extracts a table from the given change.
sql/internal/sqlx/plan.go:291
↓ 2 callersMethodtableDiff
tableDiff implements the table diffing but skips the table name check.
sql/internal/sqlx/diff.go:233
↓ 2 callersMethodtables
tableNames returns a list of all tables exist in the schema.
sql/sqlite/inspect.go:289
↓ 2 callersFunctiontestAdvisoryLock
(t *testing.T, l schema.Locker)
internal/integration/integration_test.go:647
↓ 2 callersFunctiontestCLIMigrateApplyBC
(t T, dialect string)
internal/integration/integration_test.go:224
↓ 2 callersFunctiontestCLISchemaApplyFromMigrationDir
(t T)
internal/integration/integration_test.go:538
↓ 2 callersMethodtoAttrs
(ctx *hcl.EvalContext, opts *EvalOptions, hclAttrs hclsyntax.Attributes, scope []string)
schemahcl/schemahcl.go:610
↓ 2 callersFunctiontrimCast
(s string)
sql/postgres/diff.go:571
↓ 2 callersFunctiontrimSchema
trimSchema returns the given type without the schema qualifier.
sql/postgres/diff.go:411
↓ 2 callersFunctiontypeFuncReqArgs
typeFuncReqArgs returns the required type attributes that are configured via arguments. for instance, in MySQL a field may be defined as both `int` an
schemahcl/schemahcl.go:1221
↓ 2 callersFunctiontypeRefs
typeRefs returns all type referenced in the body.
schemahcl/context.go:490
↓ 2 callersFunctionvalidIdent
validIdent reports if the given string can be used as an identifier in a reference.
schemahcl/context.go:363
↓ 2 callersFunctionvalueArgs
(spec *TypeAttr, v cty.Value)
schemahcl/schemahcl.go:994
↓ 2 callersMethodvalueByVersion
(values map[string]string, defaults string)
internal/integration/postgres_test.go:1617
↓ 2 callersFunctionviolations
(ctx context.Context, conn schema.ExecQuerier)
sql/sqlite/driver.go:336
↓ 2 callersFunctionwasAddedBack
(changes []*sqlcheck.Change, old *schema.Column)
sql/sqlcheck/incompatible/incompatible.go:113
↓ 2 callersMethodwriteAttr
(attr *Attr, body *hclwrite.Body)
schemahcl/schemahcl.go:844
↓ 2 callersMethodwriteSum
writeSum writes the sum file to the Dir, if enabled.
sql/migrate/migrate.go:555
↓ 1 callersMethodAccept
(visitor antlr.ParseTreeVisitor)
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:12486
↓ 1 callersMethodAddApplied
AddApplied adds value to the "applied" field.
cmd/atlas/internal/migrate/ent/revision_update.go:75
↓ 1 callersMethodAddApplied
AddApplied adds i to the "applied" field.
cmd/atlas/internal/migrate/ent/mutation.go:292
↓ 1 callersMethodAddAttrs
AddAttrs adds and additional attributes to the index-part.
sql/schema/dsl.go:794
↓ 1 callersMethodAddDeps
AddDeps adds the given dependencies to the view.
sql/schema/dsl.go:163
↓ 1 callersMethodAddExecutionTime
AddExecutionTime adds value to the "execution_time" field.
cmd/atlas/internal/migrate/ent/revision_update.go:117
← previousnext →1,101–1,200 of 7,770, ranked by callers