MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 1 callersMethodaddColumn
addColumn scans the current row and adds a new column from it to the table.
sql/sqlite/inspect.go:53
↓ 1 callersMethodaddComments
(src schema.Change, t *schema.Table)
sql/postgres/migrate.go:800
↓ 1 callersMethodaddFKs
(t *schema.Table, rows *sql.Rows)
sql/sqlite/inspect.go:236
↓ 1 callersFunctionaddFlagURLs
(set *pflag.FlagSet, target *[]string, args ...string)
cmd/atlas/internal/cmdapi/cmdapi.go:417
↓ 1 callersMethodaddFullText
addIndex adds an index to the list of indexes that needs further processing.
sql/mysql/inspect.go:909
↓ 1 callersFunctionaddHeaders
(_ context.Context, req *http.Request)
cmd/atlas/internal/cmdapi/vercheck/req.go:14
↓ 1 callersMethodaddIndexes
addIndexes scans the rows and adds the indexes to the table.
sql/postgres/inspect.go:480
↓ 1 callersMethodaddIndexes
addIndexes scans the rows and adds the indexes to the table.
sql/mysql/inspect.go:322
↓ 1 callersMethodaddIndexes
addIndexes scans the rows and adds the indexes to the table.
sql/sqlite/inspect.go:120
↓ 1 callersMethodaddObject
(add *schema.AddObject)
sql/postgres/driver.go:626
↓ 1 callersFunctionaddRefs
addRefs adds the dependent objects to all objects it references.
sql/schema/dsl.go:274
↓ 1 callersMethodaddTableAttrs
addTableAttrs allows extending table attributes creation with build-specific logic.
sql/postgres/driver.go:616
↓ 1 callersMethodafterBegin
afterBegin calls the AfterBegin hooks.
sql/sqlclient/client.go:192
↓ 1 callersMethodafterOpen
afterOpen calls the AfterOpen hooks.
sql/sqlclient/client.go:165
↓ 1 callersMethodalterColumn
(b *sqlx.Builder, alter *changeGroup, t *schema.Table, c *schema.ModifyColumn)
sql/postgres/migrate.go:646
↓ 1 callersMethodalterEnum
(modify *schema.ModifyObject)
sql/postgres/migrate.go:878
↓ 1 callersMethodalterTable
alterTable modifies the given table by executing on it a list of changes in one SQL statement.
sql/postgres/migrate.go:474
↓ 1 callersMethodalterTable
alterTable modifies the given table by executing on it a list of changes in one SQL statement.
sql/mysql/migrate.go:347
↓ 1 callersMethodalterTable
alterTable alters the table with the given changes. Assuming the changes are "alterable".
sql/sqlite/migrate.go:459
↓ 1 callersMethodalterTableAttr
alterTableAttr allows extending table attributes alteration with build-specific logic.
sql/postgres/driver.go:621
↓ 1 callersMethodalterType
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 callersFunctionalterable
(modify *schema.ModifyTable)
sql/sqlite/migrate.go:541
↓ 1 callersMethodanalyze
analyze runs the analysis on the given files.
cmd/atlas/internal/migratelint/lint.go:559
↓ 1 callersFunctionappendIfNotExist
(base []*Attr, additional []*Attr)
schemahcl/types.go:393
↓ 1 callersMethodapplyHcl
(spec string)
internal/integration/sqlite_test.go:807
↓ 1 callersMethodapplyHcl
(spec string)
internal/integration/mysql_test.go:1326
↓ 1 callersFunctionapplySchemaClean
applySchemaClean is the community-version of the 'atlas schema clean' handler.
cmd/atlas/internal/cmdapi/cmdapi.go:1030
↓ 1 callersMethodasCty
asCty returns a cty.Type representing the blockDef.
schemahcl/context.go:464
↓ 1 callersMethodaskForColumns
(_ *schema.Table, changes []schema.Change, _ *schema.DiffOptions)
sql/internal/sqlx/sqlx.go:684
↓ 1 callersMethodaskForIndexes
(_ string, changes []schema.Change, _ *schema.DiffOptions)
sql/internal/sqlx/sqlx.go:688
↓ 1 callersFunctionassertDir
(t *testing.T, dir string, expected map[string]string)
cmd/atlas/internal/cmdapi/schema_test.go:1122
↓ 1 callersMethodassignValues
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 callersMethodattr
(b *sqlx.Builder, attrs ...schema.Attr)
sql/mysql/migrate.go:713
↓ 1 callersFunctionattrMap
(attrs hclsyntax.Attributes)
schemahcl/context.go:390
↓ 1 callersMethodautoIncChange
autoIncChange returns the schema change for changing the AUTO_INCREMENT attribute in case it is not the default.
sql/mysql/diff.go:448
↓ 1 callersFunctionautoinc
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 callersFunctionautoincPK
(pk *schema.Index)
sql/sqlite/migrate.go:583
↓ 1 callersFunctionbalanced
(expr string)
sql/internal/sqlx/sqlx.go:614
↓ 1 callersMethodbase
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 callersMethodbeforeClose
beforeClose calls the BeforeClose hooks.
sql/sqlclient/client.go:180
↓ 1 callersMethodbeforeCommit
beforeCommit calls the BeforeCommit hooks.
sql/sqlclient/client.go:207
↓ 1 callersMethodbeforeRollback
beforeRollback calls the BeforeRollback hooks.
sql/sqlclient/client.go:219
↓ 1 callersFunctionbgCheck
bgCheck checks for version updates and security advisories for Atlas in the background.
cmd/atlas/main.go:99
↓ 1 callersFunctionblockName
(blk *hclsyntax.Block)
schemahcl/context.go:368
↓ 1 callersFunctionblocksOfType
(blocks hclsyntax.Blocks, typeName string)
schemahcl/context.go:380
↓ 1 callersFunctionbyKeys
byKeys sorts a map by keys.
sql/internal/sqlx/plan.go:365
↓ 1 callersFunctionbytesToBitLiteral
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 callersFunctioncanConvert
(t schema.Type, x string)
sql/postgres/inspect.go:826
↓ 1 callersMethodcharacter
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 callersFunctioncheck
checks writes the CHECK constraint to the builder.
sql/sqlite/migrate.go:571
↓ 1 callersMethodcheck
check runs all checks and user-defined validators on the builder.
cmd/atlas/internal/migrate/ent/revision_update.go:241
↓ 1 callersMethodcheck
check runs all checks and user-defined validators on the builder.
cmd/atlas/internal/migrate/ent/revision_update.go:558
↓ 1 callersMethodcheck
check that the flags are valid before running the command.
cmd/atlas/internal/cmdapi/schema.go:59
↓ 1 callersFunctioncheckChangeGenerated
checkChangeGenerated checks if the change of a generated column is valid.
sql/mysql/migrate.go:807
↓ 1 callersFunctioncheckForUpdate
(ctx context.Context)
cmd/atlas/main.go:77
↓ 1 callersMethodcheckpointTag
checkpointTag returns the tag of the checkpoint file, if defined.
sql/migrate/dir.go:258
↓ 1 callersMethodchecks
checks queries and appends the check constraints of the given table.
sql/postgres/inspect.go:675
↓ 1 callersMethodchecks
checks queries and appends the check constraints of the given table.
sql/mysql/inspect.go:403
↓ 1 callersFunctionchecksSimilarDiff
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 callersMethodclean
()
internal/integration/integration_test.go:772
↓ 1 callersMethodclone
()
sdk/recordriver/driver.go:164
↓ 1 callersFunctioncmdEnvsRun
cmdEnvsRun executes a given command on each of the configured environment.
cmd/atlas/internal/cmdapi/migrate.go:1612
↓ 1 callersFunctioncmdPrompt
cmdPrompt returns a promptui.Select that uses the given command's input and output.
cmd/atlas/internal/cmdapi/schema.go:493
↓ 1 callersMethodcollation
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 callersMethodcolumnCharsetChanged
columnCharsetChange indicates if there is a change to the column charset.
sql/mysql/diff.go:407
↓ 1 callersMethodcolumnCollateChanged
columnCollateChanged indicates if there is a change to the column charset.
sql/mysql/diff.go:427
↓ 1 callersFunctioncolumnDefault
(c *schema.Column, s string)
sql/postgres/inspect.go:793
↓ 1 callersFunctioncolumnDefault
(r *schemahcl.Resource)
sql/internal/specutil/convert.go:253
↓ 1 callersMethodcolumnDefault
columnDefault writes the default value of column to the builder.
sql/mysql/migrate.go:725
↓ 1 callersMethodcolumnDiff
columnDiff returns the schema changes (if any) for migrating table columns.
sql/internal/sqlx/diff.go:307
↓ 1 callersFunctioncolumnFilledAfter
columnFilledAfter checks if the column with the given value was filled after the current change.
sql/mysql/mysqlcheck/mysqlcheck.go:145
↓ 1 callersFunctioncolumnParts
(t string)
sql/sqlite/inspect.go:432
↓ 1 callersFunctioncolumnTypeSpec
columnTypeSpec converts from a concrete MySQL schema.Type into sqlspec.Column Type.
sql/mysql/sqlspec.go:423
↓ 1 callersMethodcolumns
columns queries and appends the columns of the given table.
sql/postgres/inspect.go:216
↓ 1 callersMethodcolumns
columns queries and appends the columns of the given table.
sql/mysql/inspect.go:224
↓ 1 callersMethodcolumns
columns queries and appends the columns of the given table.
sql/sqlite/inspect.go:38
↓ 1 callersFunctioncolumnsOnly
(parts []*sqlspec.IndexPart)
sql/internal/specutil/convert.go:803
↓ 1 callersFunctioncontains
(s string, l []string)
sql/internal/spectest/spectest.go:76
↓ 1 callersFunctioncontains
(hs []violation, n violation)
sql/sqlite/driver.go:367
↓ 1 callersFunctionconvertCheck
convertCheck converts a sqlspec.Check into a schema.Check.
sql/mysql/sqlspec.go:228
↓ 1 callersFunctionconvertColumn
convertColumn converts a sqlspec.Column into a schema.Column.
sql/mysql/sqlspec.go:244
↓ 1 callersFunctionconvertEventTriggers
(evs []*eventTrigger, _ *schema.Realm)
sql/postgres/driver.go:745
↓ 1 callersFunctionconvertExclude
(schemahcl.Resource, *schema.Table)
sql/postgres/driver.go:858
↓ 1 callersFunctionconvertExtensions
(exs []*extension, _ *schema.Realm)
sql/postgres/driver.go:738
↓ 1 callersFunctionconvertIdentity
(r *schemahcl.Resource)
sql/postgres/sqlspec.go:507
↓ 1 callersFunctionconvertIndex
convertIndex converts a sqlspec.Index into a schema.Index.
sql/postgres/sqlspec.go:558
↓ 1 callersFunctionconvertIndexParser
(spec specutil.Attrer, idx *schema.Index)
sql/mysql/sqlspec.go:202
↓ 1 callersFunctionconvertIndexType
(spec specutil.Attrer, idx *schema.Index)
sql/mysql/sqlspec.go:191
↓ 1 callersFunctionconvertPK
convertPK converts a sqlspec.PrimaryKey into a schema.Index.
sql/mysql/sqlspec.go:168
↓ 1 callersFunctionconvertPartition
convertPartition converts and appends the partition block into the table attributes if exists.
sql/postgres/sqlspec.go:395
↓ 1 callersFunctionconvertTableAttrs
(*sqlspec.Table, *schema.Table)
sql/postgres/driver.go:606
↓ 1 callersFunctionconvertUnique
convertUnique converts the unique constraints into indexes.
sql/postgres/sqlspec.go:377
↓ 1 callersMethodcopyBlock
(ctx *hcl.EvalContext, b *hclsyntax.Block, scope []string)
schemahcl/schemahcl.go:1111
↓ 1 callersMethodcopyRows
(from *schema.Table, to *schema.Table, changes []schema.Change)
sql/sqlite/migrate.go:378
↓ 1 callersFunctioncountFiles
(t *testing.T, d migrate.Dir)
sql/sqltool/tool_test.go:427
↓ 1 callersMethodcrdbAddIndexes
(s *schema.Schema, rows *sql.Rows)
sql/postgres/crdb.go:192
↓ 1 callersMethodcrdbIndexes
(ctx context.Context, s *schema.Schema)
sql/postgres/crdb.go:178
↓ 1 callersFunctiondeepMerge
(dst, src map[string]any)
schemahcl/stdlib.go:679
↓ 1 callersMethoddefaultChanged
defaultChanged reports if the default value of a column was changed.
sql/postgres/diff.go:124
↓ 1 callersMethoddefaultChanged
defaultChanged reports if the default value of a column was changed.
sql/mysql/diff.go:540
← previousnext →2,001–2,100 of 7,770, ranked by callers