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
↓ 1 callers
Method
defaultChanged
defaultChanged reports if the default value of a column was changed.
sql/sqlite/diff.go:106
↓ 1 callers
Method
defaultEqual
defaultEqual reports if the DEFAULT values x and y equal according to the database engine.
sql/postgres/diff.go:420
↓ 1 callers
Function
defaultExpr
(t schema.Type, s string)
sql/postgres/inspect.go:812
↓ 1 callers
Function
defaultExpr
(x string)
sql/sqlite/inspect.go:447
↓ 1 callers
Function
delim
delim formats the given string as an atlas:delimiter directive.
sql/migrate/dir.go:543
↓ 1 callers
Method
delimCmd
delimCmd checks if the scanned "DELIMITER" text represents an actual delimiter command.
sql/migrate/lex.go:484
↓ 1 callers
Function
depOfDrop
depOfDrops checks if the given object is a dependency of the given change.
sql/internal/sqlx/plan.go:496
↓ 1 callers
Function
dependOnOf
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 callers
Function
dependencies
dependencies returned an adjacency list of all tables and the tables they depend on.
sql/internal/sqlx/plan.go:217
↓ 1 callers
Function
dependsOn
dependsOn reports if the given change depends on the other change.
sql/internal/sqlx/sqlx.go:697
↓ 1 callers
Function
dependsOn
dependsOn returns the depends_on attribute for the given objects.
sql/internal/specutil/convert.go:531
↓ 1 callers
Method
detachCycles
(changes []schema.Change)
sql/postgres/driver.go:866
↓ 1 callers
Function
detachObject
detach the given object from all its references.
sql/schema/exclude.go:265
↓ 1 callers
Function
detachReferences
detachReferences detaches all table references.
sql/internal/sqlx/plan.go:115
↓ 1 callers
Function
downloadAtlas
(t *testing.T, version string)
atlasexec/internal/e2e/util_e2e.go:83
↓ 1 callers
Method
driverFor
driverFor returns the migrate.Driver to use to execute migration statements.
cmd/atlas/internal/cmdapi/migrate.go:1323
↓ 1 callers
Method
dropIndexes
(src schema.Change, t *schema.Table, drops ...*schema.DropIndex)
sql/postgres/migrate.go:858
↓ 1 callers
Method
dropObject
(drop *schema.DropObject)
sql/postgres/driver.go:642
↓ 1 callers
Method
dropTable
dropTable builds and executes the query for dropping a table from a schema.
sql/postgres/migrate.go:260
↓ 1 callers
Method
dropTable
dropTable builds and appends the migrate.Change for dropping a table from a schema.
sql/mysql/migrate.go:275
↓ 1 callers
Method
dropTable
dropTable builds and executes the query for dropping a table from a schema.
sql/sqlite/migrate.go:157
↓ 1 callers
Method
dropTables
(names ...string)
internal/integration/mysql_test.go:1361
↓ 1 callers
Function
dsn
dsn returns the MySQL standard DSN for opening the sql.DB from the user provided URL.
sql/mysql/driver.go:350
↓ 1 callers
Function
dummyType
(t *testing.T, ts *schemahcl.TypeSpec)
sql/internal/spectest/spectest.go:85
↓ 1 callers
Function
edit
edit allows editing the file content using editor.
cmd/atlas/internal/cmdapi/migrate.go:1657
↓ 1 callers
Function
edited
(line, total, pos int, file string)
sql/migrate/dir_test.go:668
↓ 1 callers
Method
emptyColumnCheckStmt
(*sqlcheck.Pass, *schema.Table, string)
sql/sqlcheck/destructive/destructive.go:158
↓ 1 callers
Method
emptyTableCheckStmt
(*sqlcheck.Pass, *schema.Table)
sql/sqlcheck/destructive/destructive.go:154
↓ 1 callers
Method
encode
encode the given *schemahcl.Resource into a byte slice containing an Atlas HCL document representing it.
schemahcl/schemahcl.go:789
↓ 1 callers
Method
engineChange
engineChange returns the schema change for migrating the table engine in case it was changed.
sql/mysql/diff.go:337
↓ 1 callers
Function
enumName
enumName extracts the name of the referenced Enum from the reference string.
sql/postgres/sqlspec.go:691
↓ 1 callers
Method
equalFloatValues
equalFloatValues report if the 2 float default values are ~equal. Note that default expression are not supported atm.
sql/mysql/diff.go:626
↓ 1 callers
Method
equalIntValues
equalIntValues report if the 2 int default values are ~equal. Note that default expression are not supported atm.
sql/mysql/diff.go:597
↓ 1 callers
Function
escapedHeredoc
escapedHeredoc escapes template introducer symbol when marshaling heredoc. See: hcl/hclwrite#escapeQuotedStringLit for reference.
schemahcl/schemahcl.go:949
↓ 1 callers
Method
evalReferences
evalReferences evaluates local and data blocks.
schemahcl/context.go:77
↓ 1 callers
Method
exclude
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1178
↓ 1 callers
Function
excludeConstChanged
(_, _ []schema.Attr)
sql/postgres/driver.go:852
↓ 1 callers
Function
excludeS
(s *Schema, glob []string)
sql/schema/exclude.go:102
↓ 1 callers
Function
excludeSpec
(*sqlspec.Table, *sqlspec.Index, *schema.Index, *Constraint)
sql/postgres/driver.go:870
↓ 1 callers
Function
excludeT
(t *Table, pattern string)
sql/schema/exclude.go:132
↓ 1 callers
Function
existingElements
(r *Resource)
schemahcl/extension.go:278
↓ 1 callers
Function
extendContext
(ctx context.Context)
cmd/atlas/main.go:131
↓ 1 callers
Function
externalRef
(ref *schemahcl.Ref, sch *schema.Schema)
sql/internal/specutil/convert.go:906
↓ 1 callers
Method
failOn
the nth call to ExecContext will fail with the given error.
sql/migrate/migrate_test.go:634
↓ 1 callers
Method
fileChecks
(context.Context, File, *Revision)
sql/migrate/migrate.go:1305
↓ 1 callers
Method
fileStmts
fileStmts returns the statements defined in the given file.
sql/migrate/migrate.go:1301
↓ 1 callers
Method
filename
(pkg string)
sdk/tmplrun/tmplrun.go:77
↓ 1 callers
Function
fillChecks
fillChecks extracts the CHECK constrains from the CREATE TABLE statement, and appends them to the table attributes.
sql/sqlite/inspect.go:601
↓ 1 callers
Function
fillConstName
fillConstName fills foreign-key constrain names from CREATE TABLE statement.
sql/sqlite/inspect.go:536
↓ 1 callers
Function
findAttr
(attrs []*Attr, k string)
schemahcl/schemahcl.go:1016
↓ 1 callers
Method
findRType
(rt reflect.Type)
schemahcl/types.go:253
↓ 1 callers
Method
findType
(rv reflect.Value)
schemahcl/types.go:239
↓ 1 callers
Method
first
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 callers
Function
fixDefaultQuotes
fixDefaultQuotes fixes the quotes on the Default field to be single quotes instead of double quotes.
sql/postgres/sqlspec.go:528
↓ 1 callers
Method
fixRenames
(changes schema.Changes)
sql/internal/sqlx/sqlx.go:692
↓ 1 callers
Method
fkChange
fkChange returns the schema changes (if any) for migrating one index to the other.
sql/internal/sqlx/diff.go:467
↓ 1 callers
Method
fks
fks queries and appends the foreign keys of the given table.
sql/postgres/inspect.go:662
↓ 1 callers
Method
fks
fks queries and appends the foreign keys of the given table.
sql/mysql/inspect.go:390
↓ 1 callers
Method
fks
fks queries and appends the foreign-keys of the given table.
sql/sqlite/inspect.go:225
↓ 1 callers
Method
fks
(b *sqlx.Builder, fks ...*schema.ForeignKey)
sql/sqlite/migrate.go:351
↓ 1 callers
Function
flat
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 callers
Function
flywayDesc
(path string)
sql/sqltool/tool.go:540
↓ 1 callers
Function
flywayVersionCompare
(v1, v2 string)
sql/sqltool/tool.go:562
↓ 1 callers
Function
fmtFile
fmtFile tries to format a file and reports if formatting occurred.
cmd/atlas/internal/cmdapi/schema.go:567
↓ 1 callers
Method
forEachBlocks
(ctx *hcl.EvalContext, b *hclsyntax.Block)
schemahcl/schemahcl.go:1083
↓ 1 callers
Method
formatDefault
formatDefault writes the default value of column to the builder.
sql/postgres/migrate.go:1012
↓ 1 callers
Method
formatType
formatType formats the type but takes into account the qualifier.
sql/postgres/migrate.go:1334
↓ 1 callers
Function
freePort
()
cmd/atlas/internal/docker/docker.go:540
↓ 1 callers
Function
fromDependsOn
(loc string, t T, ns *schema.Schema, refs []*schemahcl.Ref, aliases map[string]string)
sql/internal/specutil/convert.go:578
↓ 1 callers
Function
fromIdentity
fromIdentity returns the resource spec for representing the identity attributes.
sql/postgres/sqlspec.go:849
↓ 1 callers
Function
fromPartition
fromPartition returns the resource spec for representing the partition block.
sql/postgres/sqlspec.go:451
↓ 1 callers
Method
generatedChanged
generatedChanged reports if the generated expression of a column was changed.
sql/postgres/diff.go:151
↓ 1 callers
Method
generatedChanged
generatedChanged reports if the generated expression of a column was changed.
sql/mysql/diff.go:582
↓ 1 callers
Method
generatedChanged
generatedChanged reports if the generated expression of a column was changed.
sql/sqlite/diff.go:121
↓ 1 callers
Function
goRun
run 'go run' command and return its output.
sdk/tmplrun/tmplrun.go:83
↓ 1 callers
Method
goRun
(src []byte)
sdk/tmplrun/tmplrun.go:64
↓ 1 callers
Function
gocmd
goCmd runs a go command and returns its output.
sdk/tmplrun/tmplrun.go:92
↓ 1 callers
Method
hasEmptyColumnCheck
(*sqlcheck.Pass, *schema.Table, *schema.Column)
sql/sqlcheck/destructive/destructive.go:150
↓ 1 callers
Method
hasEmptyTableCheck
(*sqlcheck.Pass, *schema.Table)
sql/sqlcheck/destructive/destructive.go:146
↓ 1 callers
Method
hasForeignKey
(fk *ForeignKey)
sql/schema/dsl.go:834
↓ 1 callers
Function
hclList
(items []hclwrite.Tokens)
schemahcl/schemahcl.go:1065
↓ 1 callers
Function
hclType
(spec *TypeSpec, typ *Type)
schemahcl/schemahcl.go:972
↓ 1 callers
Function
hclURL
(t *testing.T)
cmd/atlas/internal/cmdapi/migrate_test.go:1753
↓ 1 callers
Function
header
(token string)
cmd/atlas/internal/cloudapi/client.go:397
↓ 1 callers
Function
hidden
(path string)
sql/sqltool/hidden.go:11
↓ 1 callers
Function
identityChanged
identityChanged reports if one of the identity attributes was changed.
sql/postgres/diff.go:457
↓ 1 callers
Method
indexDiffT
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 callers
Function
indexIncludeChanged
indexIncludeChanged reports if the INCLUDE attribute clause was changed.
sql/postgres/diff.go:528
↓ 1 callers
Method
indexInfo
(ctx context.Context, t *schema.Table, idx *schema.Index)
sql/sqlite/inspect.go:162
↓ 1 callers
Method
indexParts
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1030
↓ 1 callers
Method
indexQuery
indexQuery returns the query to retrieve the indexes of the given table.
sql/mysql/inspect.go:464
↓ 1 callers
Function
indexSpec
(idx *schema.Index)
sql/mysql/sqlspec.go:340
↓ 1 callers
Function
indexToUnique
(*schema.ModifyIndex)
sql/postgres/driver.go:842
↓ 1 callers
Function
indexTypeSpec
(idx *schema.Index, attrs []*schemahcl.Attr)
sql/mysql/sqlspec.go:349
↓ 1 callers
Method
indexes
indexes queries and appends the indexes of the given table.
sql/postgres/inspect.go:420
↓ 1 callers
Method
indexes
indexes queries and appends the indexes of the given table.
sql/mysql/inspect.go:308
↓ 1 callers
Method
indexes
indexes queries and appends the indexes of the given table.
sql/sqlite/inspect.go:103
↓ 1 callers
Method
indexesQuery
()
sql/postgres/inspect.go:460
↓ 1 callers
Function
initialize
initialize is a no-op for the OSS version.
cmd/atlas/main.go:140
↓ 1 callers
Method
intByVersion
(values map[string]int, defaults int)
internal/integration/mysql_test.go:1461
← previous
next →
2,101–2,200 of 7,770, ranked by callers