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
addColumn
addColumn scans the current row and adds a new column from it to the table.
sql/sqlite/inspect.go:53
↓ 1 callers
Method
addComments
(src schema.Change, t *schema.Table)
sql/postgres/migrate.go:800
↓ 1 callers
Method
addFKs
(t *schema.Table, rows *sql.Rows)
sql/sqlite/inspect.go:236
↓ 1 callers
Function
addFlagURLs
(set *pflag.FlagSet, target *[]string, args ...string)
cmd/atlas/internal/cmdapi/cmdapi.go:417
↓ 1 callers
Method
addFullText
addIndex adds an index to the list of indexes that needs further processing.
sql/mysql/inspect.go:909
↓ 1 callers
Function
addHeaders
(_ context.Context, req *http.Request)
cmd/atlas/internal/cmdapi/vercheck/req.go:14
↓ 1 callers
Method
addIndexes
addIndexes scans the rows and adds the indexes to the table.
sql/postgres/inspect.go:480
↓ 1 callers
Method
addIndexes
addIndexes scans the rows and adds the indexes to the table.
sql/mysql/inspect.go:322
↓ 1 callers
Method
addIndexes
addIndexes scans the rows and adds the indexes to the table.
sql/sqlite/inspect.go:120
↓ 1 callers
Method
addObject
(add *schema.AddObject)
sql/postgres/driver.go:626
↓ 1 callers
Function
addRefs
addRefs adds the dependent objects to all objects it references.
sql/schema/dsl.go:274
↓ 1 callers
Method
addTableAttrs
addTableAttrs allows extending table attributes creation with build-specific logic.
sql/postgres/driver.go:616
↓ 1 callers
Method
afterBegin
afterBegin calls the AfterBegin hooks.
sql/sqlclient/client.go:192
↓ 1 callers
Method
afterOpen
afterOpen calls the AfterOpen hooks.
sql/sqlclient/client.go:165
↓ 1 callers
Method
alterColumn
(b *sqlx.Builder, alter *changeGroup, t *schema.Table, c *schema.ModifyColumn)
sql/postgres/migrate.go:646
↓ 1 callers
Method
alterEnum
(modify *schema.ModifyObject)
sql/postgres/migrate.go:878
↓ 1 callers
Method
alterTable
alterTable modifies the given table by executing on it a list of changes in one SQL statement.
sql/postgres/migrate.go:474
↓ 1 callers
Method
alterTable
alterTable modifies the given table by executing on it a list of changes in one SQL statement.
sql/mysql/migrate.go:347
↓ 1 callers
Method
alterTable
alterTable alters the table with the given changes. Assuming the changes are "alterable".
sql/sqlite/migrate.go:459
↓ 1 callers
Method
alterTableAttr
alterTableAttr allows extending table attributes alteration with build-specific logic.
sql/postgres/driver.go:621
↓ 1 callers
Method
alterType
alterType appends the clause(s) to alter the column type and assuming the "ALTER COLUMN <Name>" was called before by the alterColumn function.
sql/postgres/migrate.go:702
↓ 1 callers
Function
alterable
(modify *schema.ModifyTable)
sql/sqlite/migrate.go:541
↓ 1 callers
Method
analyze
analyze runs the analysis on the given files.
cmd/atlas/internal/migratelint/lint.go:559
↓ 1 callers
Function
appendIfNotExist
(base []*Attr, additional []*Attr)
schemahcl/types.go:393
↓ 1 callers
Method
applyHcl
(spec string)
internal/integration/sqlite_test.go:807
↓ 1 callers
Method
applyHcl
(spec string)
internal/integration/mysql_test.go:1326
↓ 1 callers
Function
applySchemaClean
applySchemaClean is the community-version of the 'atlas schema clean' handler.
cmd/atlas/internal/cmdapi/cmdapi.go:1030
↓ 1 callers
Method
asCty
asCty returns a cty.Type representing the blockDef.
schemahcl/context.go:464
↓ 1 callers
Method
askForColumns
(_ *schema.Table, changes []schema.Change, _ *schema.DiffOptions)
sql/internal/sqlx/sqlx.go:684
↓ 1 callers
Method
askForIndexes
(_ string, changes []schema.Change, _ *schema.DiffOptions)
sql/internal/sqlx/sqlx.go:688
↓ 1 callers
Function
assertDir
(t *testing.T, dir string, expected map[string]string)
cmd/atlas/internal/cmdapi/schema_test.go:1122
↓ 1 callers
Method
assignValues
assignValues assigns the values that were returned from sql.Rows (after scanning) to the Revision fields.
cmd/atlas/internal/migrate/ent/revision.go:73
↓ 1 callers
Method
attr
(b *sqlx.Builder, attrs ...schema.Attr)
sql/mysql/migrate.go:713
↓ 1 callers
Function
attrMap
(attrs hclsyntax.Attributes)
schemahcl/context.go:390
↓ 1 callers
Method
autoIncChange
autoIncChange returns the schema change for changing the AUTO_INCREMENT attribute in case it is not the default.
sql/mysql/diff.go:448
↓ 1 callers
Function
autoinc
autoinc checks if the table contains a "PRIMARY KEY AUTOINCREMENT" on its CREATE statement, according to https://www.sqlite.org/syntax/column-constrai
sql/sqlite/inspect.go:474
↓ 1 callers
Function
autoincPK
(pk *schema.Index)
sql/sqlite/migrate.go:583
↓ 1 callers
Function
balanced
(expr string)
sql/internal/sqlx/sqlx.go:614
↓ 1 callers
Method
base
base brings the dev environment to the base point and returns its state. It skips to the first checkpoint, if there is one, assuming the history is re
cmd/atlas/internal/migratelint/lint.go:279
↓ 1 callers
Method
beforeClose
beforeClose calls the BeforeClose hooks.
sql/sqlclient/client.go:180
↓ 1 callers
Method
beforeCommit
beforeCommit calls the BeforeCommit hooks.
sql/sqlclient/client.go:207
↓ 1 callers
Method
beforeRollback
beforeRollback calls the BeforeRollback hooks.
sql/sqlclient/client.go:219
↓ 1 callers
Function
bgCheck
bgCheck checks for version updates and security advisories for Atlas in the background.
cmd/atlas/main.go:99
↓ 1 callers
Function
blockName
(blk *hclsyntax.Block)
schemahcl/context.go:368
↓ 1 callers
Function
blocksOfType
(blocks hclsyntax.Blocks, typeName string)
schemahcl/context.go:380
↓ 1 callers
Function
byKeys
byKeys sorts a map by keys.
sql/internal/sqlx/plan.go:365
↓ 1 callers
Function
bytesToBitLiteral
bytesToBitLiteral converts a bytes to MySQL bit literal. e.g. []byte{4} -> b'100', []byte{2,1} -> b'1000000001'. See: https://github.com/pingcap/tidb/
sql/mysql/tidb.go:177
↓ 1 callers
Function
canConvert
(t schema.Type, x string)
sql/postgres/inspect.go:826
↓ 1 callers
Method
character
character returns the table character-set from its attributes or from the default defined in the schema or the database.
sql/mysql/migrate.go:691
↓ 1 callers
Function
check
checks writes the CHECK constraint to the builder.
sql/sqlite/migrate.go:571
↓ 1 callers
Method
check
check runs all checks and user-defined validators on the builder.
cmd/atlas/internal/migrate/ent/revision_update.go:241
↓ 1 callers
Method
check
check runs all checks and user-defined validators on the builder.
cmd/atlas/internal/migrate/ent/revision_update.go:558
↓ 1 callers
Method
check
check that the flags are valid before running the command.
cmd/atlas/internal/cmdapi/schema.go:59
↓ 1 callers
Function
checkChangeGenerated
checkChangeGenerated checks if the change of a generated column is valid.
sql/mysql/migrate.go:807
↓ 1 callers
Function
checkForUpdate
(ctx context.Context)
cmd/atlas/main.go:77
↓ 1 callers
Method
checkpointTag
checkpointTag returns the tag of the checkpoint file, if defined.
sql/migrate/dir.go:258
↓ 1 callers
Method
checks
checks queries and appends the check constraints of the given table.
sql/postgres/inspect.go:675
↓ 1 callers
Method
checks
checks queries and appends the check constraints of the given table.
sql/mysql/inspect.go:403
↓ 1 callers
Function
checksSimilarDiff
checksSimilarDiff computes the change diff between the 2 tables. Unlike ChecksDiff, it does not compare the constraint name, but determines if there i
sql/internal/sqlx/diff.go:705
↓ 1 callers
Method
clean
()
internal/integration/integration_test.go:772
↓ 1 callers
Method
clone
()
sdk/recordriver/driver.go:164
↓ 1 callers
Function
cmdEnvsRun
cmdEnvsRun executes a given command on each of the configured environment.
cmd/atlas/internal/cmdapi/migrate.go:1612
↓ 1 callers
Function
cmdPrompt
cmdPrompt returns a promptui.Select that uses the given command's input and output.
cmd/atlas/internal/cmdapi/schema.go:493
↓ 1 callers
Method
collation
collation returns the table collation from its attributes or from the default defined in the schema or the database.
sql/mysql/migrate.go:701
↓ 1 callers
Method
columnCharsetChanged
columnCharsetChange indicates if there is a change to the column charset.
sql/mysql/diff.go:407
↓ 1 callers
Method
columnCollateChanged
columnCollateChanged indicates if there is a change to the column charset.
sql/mysql/diff.go:427
↓ 1 callers
Function
columnDefault
(c *schema.Column, s string)
sql/postgres/inspect.go:793
↓ 1 callers
Function
columnDefault
(r *schemahcl.Resource)
sql/internal/specutil/convert.go:253
↓ 1 callers
Method
columnDefault
columnDefault writes the default value of column to the builder.
sql/mysql/migrate.go:725
↓ 1 callers
Method
columnDiff
columnDiff returns the schema changes (if any) for migrating table columns.
sql/internal/sqlx/diff.go:307
↓ 1 callers
Function
columnFilledAfter
columnFilledAfter checks if the column with the given value was filled after the current change.
sql/mysql/mysqlcheck/mysqlcheck.go:145
↓ 1 callers
Function
columnParts
(t string)
sql/sqlite/inspect.go:432
↓ 1 callers
Function
columnTypeSpec
columnTypeSpec converts from a concrete MySQL schema.Type into sqlspec.Column Type.
sql/mysql/sqlspec.go:423
↓ 1 callers
Method
columns
columns queries and appends the columns of the given table.
sql/postgres/inspect.go:216
↓ 1 callers
Method
columns
columns queries and appends the columns of the given table.
sql/mysql/inspect.go:224
↓ 1 callers
Method
columns
columns queries and appends the columns of the given table.
sql/sqlite/inspect.go:38
↓ 1 callers
Function
columnsOnly
(parts []*sqlspec.IndexPart)
sql/internal/specutil/convert.go:803
↓ 1 callers
Function
contains
(s string, l []string)
sql/internal/spectest/spectest.go:76
↓ 1 callers
Function
contains
(hs []violation, n violation)
sql/sqlite/driver.go:367
↓ 1 callers
Function
convertCheck
convertCheck converts a sqlspec.Check into a schema.Check.
sql/mysql/sqlspec.go:228
↓ 1 callers
Function
convertColumn
convertColumn converts a sqlspec.Column into a schema.Column.
sql/mysql/sqlspec.go:244
↓ 1 callers
Function
convertEventTriggers
(evs []*eventTrigger, _ *schema.Realm)
sql/postgres/driver.go:745
↓ 1 callers
Function
convertExclude
(schemahcl.Resource, *schema.Table)
sql/postgres/driver.go:858
↓ 1 callers
Function
convertExtensions
(exs []*extension, _ *schema.Realm)
sql/postgres/driver.go:738
↓ 1 callers
Function
convertIdentity
(r *schemahcl.Resource)
sql/postgres/sqlspec.go:507
↓ 1 callers
Function
convertIndex
convertIndex converts a sqlspec.Index into a schema.Index.
sql/postgres/sqlspec.go:558
↓ 1 callers
Function
convertIndexParser
(spec specutil.Attrer, idx *schema.Index)
sql/mysql/sqlspec.go:202
↓ 1 callers
Function
convertIndexType
(spec specutil.Attrer, idx *schema.Index)
sql/mysql/sqlspec.go:191
↓ 1 callers
Function
convertPK
convertPK converts a sqlspec.PrimaryKey into a schema.Index.
sql/mysql/sqlspec.go:168
↓ 1 callers
Function
convertPartition
convertPartition converts and appends the partition block into the table attributes if exists.
sql/postgres/sqlspec.go:395
↓ 1 callers
Function
convertTableAttrs
(*sqlspec.Table, *schema.Table)
sql/postgres/driver.go:606
↓ 1 callers
Function
convertUnique
convertUnique converts the unique constraints into indexes.
sql/postgres/sqlspec.go:377
↓ 1 callers
Method
copyBlock
(ctx *hcl.EvalContext, b *hclsyntax.Block, scope []string)
schemahcl/schemahcl.go:1111
↓ 1 callers
Method
copyRows
(from *schema.Table, to *schema.Table, changes []schema.Change)
sql/sqlite/migrate.go:378
↓ 1 callers
Function
countFiles
(t *testing.T, d migrate.Dir)
sql/sqltool/tool_test.go:427
↓ 1 callers
Method
crdbAddIndexes
(s *schema.Schema, rows *sql.Rows)
sql/postgres/crdb.go:192
↓ 1 callers
Method
crdbIndexes
(ctx context.Context, s *schema.Schema)
sql/postgres/crdb.go:178
↓ 1 callers
Function
deepMerge
(dst, src map[string]any)
schemahcl/stdlib.go:679
↓ 1 callers
Method
defaultChanged
defaultChanged reports if the default value of a column was changed.
sql/postgres/diff.go:124
↓ 1 callers
Method
defaultChanged
defaultChanged reports if the default value of a column was changed.
sql/mysql/diff.go:540
← previous
next →
2,001–2,100 of 7,770, ranked by callers