MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 1 callersMethoddefaultChanged
defaultChanged reports if the default value of a column was changed.
sql/sqlite/diff.go:106
↓ 1 callersMethoddefaultEqual
defaultEqual reports if the DEFAULT values x and y equal according to the database engine.
sql/postgres/diff.go:420
↓ 1 callersFunctiondefaultExpr
(t schema.Type, s string)
sql/postgres/inspect.go:812
↓ 1 callersFunctiondefaultExpr
(x string)
sql/sqlite/inspect.go:447
↓ 1 callersFunctiondelim
delim formats the given string as an atlas:delimiter directive.
sql/migrate/dir.go:543
↓ 1 callersMethoddelimCmd
delimCmd checks if the scanned "DELIMITER" text represents an actual delimiter command.
sql/migrate/lex.go:484
↓ 1 callersFunctiondepOfDrop
depOfDrops checks if the given object is a dependency of the given change.
sql/internal/sqlx/plan.go:496
↓ 1 callersFunctiondependOnOf
dependOnOf checks if the given change depends on the other change or vice versa based on their underlying object implementation.
sql/internal/sqlx/plan.go:463
↓ 1 callersFunctiondependencies
dependencies returned an adjacency list of all tables and the tables they depend on.
sql/internal/sqlx/plan.go:217
↓ 1 callersFunctiondependsOn
dependsOn reports if the given change depends on the other change.
sql/internal/sqlx/sqlx.go:697
↓ 1 callersFunctiondependsOn
dependsOn returns the depends_on attribute for the given objects.
sql/internal/specutil/convert.go:531
↓ 1 callersMethoddetachCycles
(changes []schema.Change)
sql/postgres/driver.go:866
↓ 1 callersFunctiondetachObject
detach the given object from all its references.
sql/schema/exclude.go:265
↓ 1 callersFunctiondetachReferences
detachReferences detaches all table references.
sql/internal/sqlx/plan.go:115
↓ 1 callersFunctiondownloadAtlas
(t *testing.T, version string)
atlasexec/internal/e2e/util_e2e.go:83
↓ 1 callersMethoddriverFor
driverFor returns the migrate.Driver to use to execute migration statements.
cmd/atlas/internal/cmdapi/migrate.go:1323
↓ 1 callersMethoddropIndexes
(src schema.Change, t *schema.Table, drops ...*schema.DropIndex)
sql/postgres/migrate.go:858
↓ 1 callersMethoddropObject
(drop *schema.DropObject)
sql/postgres/driver.go:642
↓ 1 callersMethoddropTable
dropTable builds and executes the query for dropping a table from a schema.
sql/postgres/migrate.go:260
↓ 1 callersMethoddropTable
dropTable builds and appends the migrate.Change for dropping a table from a schema.
sql/mysql/migrate.go:275
↓ 1 callersMethoddropTable
dropTable builds and executes the query for dropping a table from a schema.
sql/sqlite/migrate.go:157
↓ 1 callersMethoddropTables
(names ...string)
internal/integration/mysql_test.go:1361
↓ 1 callersFunctiondsn
dsn returns the MySQL standard DSN for opening the sql.DB from the user provided URL.
sql/mysql/driver.go:350
↓ 1 callersFunctiondummyType
(t *testing.T, ts *schemahcl.TypeSpec)
sql/internal/spectest/spectest.go:85
↓ 1 callersFunctionedit
edit allows editing the file content using editor.
cmd/atlas/internal/cmdapi/migrate.go:1657
↓ 1 callersFunctionedited
(line, total, pos int, file string)
sql/migrate/dir_test.go:668
↓ 1 callersMethodemptyColumnCheckStmt
(*sqlcheck.Pass, *schema.Table, string)
sql/sqlcheck/destructive/destructive.go:158
↓ 1 callersMethodemptyTableCheckStmt
(*sqlcheck.Pass, *schema.Table)
sql/sqlcheck/destructive/destructive.go:154
↓ 1 callersMethodencode
encode the given *schemahcl.Resource into a byte slice containing an Atlas HCL document representing it.
schemahcl/schemahcl.go:789
↓ 1 callersMethodengineChange
engineChange returns the schema change for migrating the table engine in case it was changed.
sql/mysql/diff.go:337
↓ 1 callersFunctionenumName
enumName extracts the name of the referenced Enum from the reference string.
sql/postgres/sqlspec.go:691
↓ 1 callersMethodequalFloatValues
equalFloatValues report if the 2 float default values are ~equal. Note that default expression are not supported atm.
sql/mysql/diff.go:626
↓ 1 callersMethodequalIntValues
equalIntValues report if the 2 int default values are ~equal. Note that default expression are not supported atm.
sql/mysql/diff.go:597
↓ 1 callersFunctionescapedHeredoc
escapedHeredoc escapes template introducer symbol when marshaling heredoc. See: hcl/hclwrite#escapeQuotedStringLit for reference.
schemahcl/schemahcl.go:949
↓ 1 callersMethodevalReferences
evalReferences evaluates local and data blocks.
schemahcl/context.go:77
↓ 1 callersMethodexclude
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1178
↓ 1 callersFunctionexcludeConstChanged
(_, _ []schema.Attr)
sql/postgres/driver.go:852
↓ 1 callersFunctionexcludeS
(s *Schema, glob []string)
sql/schema/exclude.go:102
↓ 1 callersFunctionexcludeSpec
(*sqlspec.Table, *sqlspec.Index, *schema.Index, *Constraint)
sql/postgres/driver.go:870
↓ 1 callersFunctionexcludeT
(t *Table, pattern string)
sql/schema/exclude.go:132
↓ 1 callersFunctionexistingElements
(r *Resource)
schemahcl/extension.go:278
↓ 1 callersFunctionextendContext
(ctx context.Context)
cmd/atlas/main.go:131
↓ 1 callersFunctionexternalRef
(ref *schemahcl.Ref, sch *schema.Schema)
sql/internal/specutil/convert.go:906
↓ 1 callersMethodfailOn
the nth call to ExecContext will fail with the given error.
sql/migrate/migrate_test.go:634
↓ 1 callersMethodfileChecks
(context.Context, File, *Revision)
sql/migrate/migrate.go:1305
↓ 1 callersMethodfileStmts
fileStmts returns the statements defined in the given file.
sql/migrate/migrate.go:1301
↓ 1 callersMethodfilename
(pkg string)
sdk/tmplrun/tmplrun.go:77
↓ 1 callersFunctionfillChecks
fillChecks extracts the CHECK constrains from the CREATE TABLE statement, and appends them to the table attributes.
sql/sqlite/inspect.go:601
↓ 1 callersFunctionfillConstName
fillConstName fills foreign-key constrain names from CREATE TABLE statement.
sql/sqlite/inspect.go:536
↓ 1 callersFunctionfindAttr
(attrs []*Attr, k string)
schemahcl/schemahcl.go:1016
↓ 1 callersMethodfindRType
(rt reflect.Type)
schemahcl/types.go:253
↓ 1 callersMethodfindType
(rv reflect.Value)
schemahcl/types.go:239
↓ 1 callersMethodfirst
first is a version of "next" but is used when linting the first migration file. In this case we do not need to analyze each statement, but the entire
cmd/atlas/internal/migratelint/lint.go:303
↓ 1 callersFunctionfixDefaultQuotes
fixDefaultQuotes fixes the quotes on the Default field to be single quotes instead of double quotes.
sql/postgres/sqlspec.go:528
↓ 1 callersMethodfixRenames
(changes schema.Changes)
sql/internal/sqlx/sqlx.go:692
↓ 1 callersMethodfkChange
fkChange returns the schema changes (if any) for migrating one index to the other.
sql/internal/sqlx/diff.go:467
↓ 1 callersMethodfks
fks queries and appends the foreign keys of the given table.
sql/postgres/inspect.go:662
↓ 1 callersMethodfks
fks queries and appends the foreign keys of the given table.
sql/mysql/inspect.go:390
↓ 1 callersMethodfks
fks queries and appends the foreign-keys of the given table.
sql/sqlite/inspect.go:225
↓ 1 callersMethodfks
(b *sqlx.Builder, fks ...*schema.ForeignKey)
sql/sqlite/migrate.go:351
↓ 1 callersFunctionflat
flat takes a list of changes and breaks them down to single atomic changes (e.g: no ModifyTable with multiple AddColumn inside it). Note that, the onl
sql/mysql/tidb.go:58
↓ 1 callersFunctionflywayDesc
(path string)
sql/sqltool/tool.go:540
↓ 1 callersFunctionflywayVersionCompare
(v1, v2 string)
sql/sqltool/tool.go:562
↓ 1 callersFunctionfmtFile
fmtFile tries to format a file and reports if formatting occurred.
cmd/atlas/internal/cmdapi/schema.go:567
↓ 1 callersMethodforEachBlocks
(ctx *hcl.EvalContext, b *hclsyntax.Block)
schemahcl/schemahcl.go:1083
↓ 1 callersMethodformatDefault
formatDefault writes the default value of column to the builder.
sql/postgres/migrate.go:1012
↓ 1 callersMethodformatType
formatType formats the type but takes into account the qualifier.
sql/postgres/migrate.go:1334
↓ 1 callersFunctionfreePort
()
cmd/atlas/internal/docker/docker.go:540
↓ 1 callersFunctionfromDependsOn
(loc string, t T, ns *schema.Schema, refs []*schemahcl.Ref, aliases map[string]string)
sql/internal/specutil/convert.go:578
↓ 1 callersFunctionfromIdentity
fromIdentity returns the resource spec for representing the identity attributes.
sql/postgres/sqlspec.go:849
↓ 1 callersFunctionfromPartition
fromPartition returns the resource spec for representing the partition block.
sql/postgres/sqlspec.go:451
↓ 1 callersMethodgeneratedChanged
generatedChanged reports if the generated expression of a column was changed.
sql/postgres/diff.go:151
↓ 1 callersMethodgeneratedChanged
generatedChanged reports if the generated expression of a column was changed.
sql/mysql/diff.go:582
↓ 1 callersMethodgeneratedChanged
generatedChanged reports if the generated expression of a column was changed.
sql/sqlite/diff.go:121
↓ 1 callersFunctiongoRun
run 'go run' command and return its output.
sdk/tmplrun/tmplrun.go:83
↓ 1 callersMethodgoRun
(src []byte)
sdk/tmplrun/tmplrun.go:64
↓ 1 callersFunctiongocmd
goCmd runs a go command and returns its output.
sdk/tmplrun/tmplrun.go:92
↓ 1 callersMethodhasEmptyColumnCheck
(*sqlcheck.Pass, *schema.Table, *schema.Column)
sql/sqlcheck/destructive/destructive.go:150
↓ 1 callersMethodhasEmptyTableCheck
(*sqlcheck.Pass, *schema.Table)
sql/sqlcheck/destructive/destructive.go:146
↓ 1 callersMethodhasForeignKey
(fk *ForeignKey)
sql/schema/dsl.go:834
↓ 1 callersFunctionhclList
(items []hclwrite.Tokens)
schemahcl/schemahcl.go:1065
↓ 1 callersFunctionhclType
(spec *TypeSpec, typ *Type)
schemahcl/schemahcl.go:972
↓ 1 callersFunctionhclURL
(t *testing.T)
cmd/atlas/internal/cmdapi/migrate_test.go:1753
↓ 1 callersFunctionheader
(token string)
cmd/atlas/internal/cloudapi/client.go:397
↓ 1 callersFunctionhidden
(path string)
sql/sqltool/hidden.go:11
↓ 1 callersFunctionidentityChanged
identityChanged reports if one of the identity attributes was changed.
sql/postgres/diff.go:457
↓ 1 callersMethodindexDiffT
indexDiffT returns the schema changes (if any) for migrating table indexes from current state to the desired state.
sql/internal/sqlx/diff.go:373
↓ 1 callersFunctionindexIncludeChanged
indexIncludeChanged reports if the INCLUDE attribute clause was changed.
sql/postgres/diff.go:528
↓ 1 callersMethodindexInfo
(ctx context.Context, t *schema.Table, idx *schema.Index)
sql/sqlite/inspect.go:162
↓ 1 callersMethodindexParts
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1030
↓ 1 callersMethodindexQuery
indexQuery returns the query to retrieve the indexes of the given table.
sql/mysql/inspect.go:464
↓ 1 callersFunctionindexSpec
(idx *schema.Index)
sql/mysql/sqlspec.go:340
↓ 1 callersFunctionindexToUnique
(*schema.ModifyIndex)
sql/postgres/driver.go:842
↓ 1 callersFunctionindexTypeSpec
(idx *schema.Index, attrs []*schemahcl.Attr)
sql/mysql/sqlspec.go:349
↓ 1 callersMethodindexes
indexes queries and appends the indexes of the given table.
sql/postgres/inspect.go:420
↓ 1 callersMethodindexes
indexes queries and appends the indexes of the given table.
sql/mysql/inspect.go:308
↓ 1 callersMethodindexes
indexes queries and appends the indexes of the given table.
sql/sqlite/inspect.go:103
↓ 1 callersMethodindexesQuery
()
sql/postgres/inspect.go:460
↓ 1 callersFunctioninitialize
initialize is a no-op for the OSS version.
cmd/atlas/main.go:140
↓ 1 callersMethodintByVersion
(values map[string]int, defaults int)
internal/integration/mysql_test.go:1461
← previousnext →2,101–2,200 of 7,770, ranked by callers