MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 1 callersFunctionscanAttr
(key string, r *Resource, field reflect.Value)
schemahcl/extension.go:537
↓ 1 callersFunctionscanPtr
(key string, r *Resource, field reflect.Value)
schemahcl/extension.go:516
↓ 1 callersFunctionscanString
(s string)
schemahcl/spec.go:366
↓ 1 callersMethodscanValues
scanValues returns the types for scanning values from sql.Rows.
cmd/atlas/internal/migrate/ent/revision.go:52
↓ 1 callersFunctionschemaApplyRunE
schemaApplyRunE is the community version of the 'atlas schema apply' command.
cmd/atlas/internal/cmdapi/cmdapi.go:907
↓ 1 callersFunctionschemaCleanRun
(cmd *cobra.Command, _ []string, flags schemaCleanFlags)
cmd/atlas/internal/cmdapi/schema.go:209
↓ 1 callersFunctionschemaDiffCmdWithFlags
()
cmd/atlas/internal/cmdapi/schema.go:256
↓ 1 callersFunctionschemaDiffRun
(cmd *cobra.Command, _ []string, flags schemaDiffFlags, env *Env)
cmd/atlas/internal/cmdapi/cmdapi.go:1052
↓ 1 callersFunctionschemaFmtRun
(cmd *cobra.Command, args []string)
cmd/atlas/internal/cmdapi/schema.go:313
↓ 1 callersFunctionschemaInspectCmdWithFlags
()
cmd/atlas/internal/cmdapi/cmdapi.go:1163
↓ 1 callersFunctionschemaInspectRun
(cmd *cobra.Command, _ []string, flags schemaInspectFlags, env *Env)
cmd/atlas/internal/cmdapi/cmdapi.go:1210
↓ 1 callersMethodsequence
sequence returns the inspected name of the sequence or the standard name defined by postgres.
sql/postgres/inspect.go:1284
↓ 1 callersMethodsetAutoInc
setAutoInc extracts the updated AUTO_INCREMENT from CREATE TABLE.
sql/mysql/inspect.go:914
↓ 1 callersMethodsetAutoIncrement
setCollate extracts the updated Collation from CREATE TABLE statement.
sql/mysql/tidb.go:205
↓ 1 callersFunctionsetChildSlice
(field reflect.Value, children []*Resource)
schemahcl/extension.go:289
↓ 1 callersMethodsetCollate
setCollate extracts the updated Collation from CREATE TABLE statement.
sql/mysql/tidb.go:190
↓ 1 callersFunctionsetEnvs
(context.Context, []*Env)
cmd/atlas/internal/cmdapi/cmdapi.go:1134
↓ 1 callersFunctionsetField
(field reflect.Value, attr *Attr)
schemahcl/extension.go:310
↓ 1 callersFunctionsetGenExpr
setGenExpr extracts the generated expression from the CREATE statement and appends it to the column.
sql/sqlite/inspect.go:502
↓ 1 callersMethodsetIndexParser
setIndexParser updates the FULLTEXT parser from CREATE TABLE statement.
sql/mysql/inspect.go:938
↓ 1 callersMethodsetInputVals
setInputVals sets the input values into the evaluation context. HCL documents can define input variables in the document body by defining "variable" b
schemahcl/context.go:36
↓ 1 callersFunctionsetPtr
(field reflect.Value, cv cty.Value)
schemahcl/extension.go:352
↓ 1 callersFunctionsetSliceAttr
setSliceAttr sets the value of attr to the slice field. This function expects both the target field and the source attr to be slices.
schemahcl/extension.go:403
↓ 1 callersFunctionsetupFmtTest
(t *testing.T, inputDir map[string]string)
cmd/atlas/internal/cmdapi/schema_test.go:1137
↓ 1 callersMethodshowCreate
showCreate sets and fixes schema elements that require information from the 'SHOW CREATE' command.
sql/mysql/inspect.go:512
↓ 1 callersMethodsimilarUnnamedIndex
similarUnnamedIndex searches for an unnamed index with the same index-parts in the table.
sql/internal/sqlx/diff.go:504
↓ 1 callersFunctionskipAutoChanges
skipAutoChanges filters unnecessary changes that are automatically happened by the database when ALTER TABLE is executed.
sql/postgres/migrate.go:1203
↓ 1 callersFunctionskipAutoChanges
skipAutoChanges filters unnecessary changes that are automatically happened by the database when ALTER TABLE is executed.
sql/mysql/migrate.go:756
↓ 1 callersMethodskipBegin
()
sql/migrate/lex.go:407
↓ 1 callersMethodskipBeginAtomic
()
sql/migrate/lex.go:346
↓ 1 callersMethodskipBeginTryCatch
()
sql/migrate/lex.go:372
↓ 1 callersMethodskipDollarQuote
()
sql/migrate/lex.go:325
↓ 1 callersMethodskipGoCount
skipGoCount checks if the scanned "GO"
sql/migrate/lex.go:506
↓ 1 callersMethodskipQuote
(quote rune)
sql/migrate/lex.go:308
↓ 1 callersMethodsortChanges
(changes []schema.Change)
sql/postgres/driver.go:862
↓ 1 callersFunctionsortMap
sortMap returns an index-map indicates the position of table in a topological sort in reversed order based on its references, and a boolean indicate i
sql/internal/sqlx/plan.go:181
↓ 1 callersFunctionsplit
split parses the list of patterns into chain of resource-globs. For example, 's*.t.*' is split to ['s*', 't', *].
sql/schema/exclude.go:83
↓ 1 callersMethodsqlAll
(ctx context.Context, hooks ...queryHook)
cmd/atlas/internal/migrate/ent/revision_query.go:338
↓ 1 callersMethodsqlCount
(ctx context.Context)
cmd/atlas/internal/migrate/ent/revision_query.go:365
↓ 1 callersFunctionsqlDiff
(diff *SchemaDiff, indent ...string)
cmd/atlas/internal/cmdlog/cmdlog.go:999
↓ 1 callersFunctionsqlInspect
(report *SchemaInspect, indent ...string)
cmd/atlas/internal/cmdlog/cmdlog.go:945
↓ 1 callersMethodsqlScan
(ctx context.Context, root *RevisionQuery, v any)
cmd/atlas/internal/migrate/ent/revision_query.go:520
↓ 1 callersFunctionstdFuncs
standard functions exist in schemahcl language.
schemahcl/stdlib.go:110
↓ 1 callersFunctionstdTypes
(ctx *hcl.EvalContext)
schemahcl/stdlib.go:29
↓ 1 callersMethodstore
(path, env string, vars Vars, p *Project, e []*Env)
cmd/atlas/internal/cmdapi/project.go:619
↓ 1 callersMethodsummary
(ctx context.Context)
cmd/atlas/internal/migratelint/lint.go:494
↓ 1 callersMethodsupportsCheck
supportsCheck reports if the connected database supports the CHECK clause, and return the querying for getting them.
sql/mysql/inspect.go:455
↓ 1 callersMethodsupportsIndexInclude
supportsIndexInclude reports if the server supports the INCLUDE clause.
sql/postgres/driver.go:404
↓ 1 callersMethodsupportsIndexNullsDistinct
supportsIndexNullsDistinct reports if the server supports the NULLS [NOT] DISTINCT clause.
sql/postgres/driver.go:409
↓ 1 callersMethodsystemVerChange
systemVerChange returns the schema change for migrating the system versioning attributes if it was changed.
sql/mysql/diff.go:366
↓ 1 callersMethodtableAttrDiff
tableAttrDiff allows extending table attributes diffing with build-specific logic.
sql/postgres/driver.go:611
↓ 1 callersFunctiontableAttrsSpec
(*schema.Table, *sqlspec.Table)
sql/postgres/driver.go:602
↓ 1 callersMethodtableSeq
tableSeq sets the sequence value of the table if it was provided by the user on table creation.
sql/sqlite/migrate.go:507
↓ 1 callersMethodtables
table returns the table from the database, or a NotExistError if the table was not found.
sql/postgres/inspect.go:162
↓ 1 callersMethodtables
(ctx context.Context, realm *schema.Realm, opts *schema.InspectOptions)
sql/mysql/inspect.go:151
↓ 1 callersMethodtablesQuery
(context.Context)
sql/mysql/driver.go:482
↓ 1 callersMethodtablesQueryArgs
(context.Context)
sql/mysql/driver.go:486
↓ 1 callersFunctiontasks
(path string)
cmd/atlas/internal/cmdapi/schema.go:524
↓ 1 callersFunctiontestCLISchemaInspectEnv
(t T, h string, env string, eval schemahcl.Evaluator)
internal/integration/integration_test.go:356
↓ 1 callersFunctiontestingURL
(endpoint string)
cmd/atlas/internal/cloudapi/client.go:417
↓ 1 callersMethodtidb
()
internal/integration/mysql_test.go:1502
↓ 1 callersMethodtoResource
(ctx *hcl.EvalContext, opts *EvalOptions, block *hclsyntax.Block, scope []string, dec *blockDef)
schemahcl/schemahcl.go:744
↓ 1 callersMethodtopLevel
topLevel executes first the changes for creating or dropping schemas and create objects that tables might depend on.
sql/postgres/migrate.go:111
↓ 1 callersMethodtopLevel
topLevel appends first the changes for creating or dropping schemas (top-level schema elements).
sql/mysql/migrate.go:109
↓ 1 callersFunctiontxmodeFor
txmodeFor returns the transaction mode for the given file.
cmd/atlas/internal/cmdapi/migrate.go:1415
↓ 1 callersFunctiontypeChanged
(from, to *schema.Column, ns string)
sql/postgres/diff.go:341
↓ 1 callersMethodtypeChanged
(from, to *schema.Column)
sql/postgres/diff.go:337
↓ 1 callersMethodtypeChanged
(from, to *schema.Column)
sql/mysql/diff.go:490
↓ 1 callersMethodtypeChanged
typeChanged reports if the column type was changed.
sql/sqlite/diff.go:92
↓ 1 callersMethodtypeError
typeError improves diagnostic reporting in case of parse error.
schemahcl/schemahcl.go:677
↓ 1 callersFunctiontypeFuncSpec
typeFuncSpec returns the HCL function for defining the type in the spec.
schemahcl/schemahcl.go:1146
↓ 1 callersFunctiontypeFuncSpecImpl
typeFuncSpecImpl returns the function implementation for the HCL function spec.
schemahcl/schemahcl.go:1177
↓ 1 callersFunctiontypeNonFuncArgs
typeNonFuncArgs returns the type attributes that are NOT configured via arguments to the type definition, `int unsigned`.
schemahcl/types.go:367
↓ 1 callersMethodunique
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1162
↓ 1 callersFunctionuniqueConstChanged
(_, _ []schema.Attr)
sql/postgres/driver.go:846
↓ 1 callersMethodusers
()
internal/integration/sqlite_test.go:844
↓ 1 callersMethodusers
()
internal/integration/mysql_test.go:1391
↓ 1 callersMethodusers
()
internal/integration/postgres_test.go:1649
↓ 1 callersMethodusers
()
internal/integration/cockroach_test.go:834
↓ 1 callersFunctionvalidSpec
(typeSpec *TypeSpec)
schemahcl/types.go:114
↓ 1 callersMethodvalidate
validate that no empty values are given.
cmd/atlas/internal/docker/docker.go:533
↓ 1 callersFunctionvalidateStructPtr
(target any)
schemahcl/extension.go:267
↓ 1 callersFunctionvercheckEndpoint
(context.Context)
cmd/atlas/main.go:135
↓ 1 callersMethodverifyTime
()
cmd/atlas/internal/cmdapi/vercheck/vercheck.go:106
↓ 1 callersFunctionviolationsDiff
equalViolations compares the foreign key violations before starting a transaction with the ones afterwards. It returns violations found in v2 that are
sql/sqlite/driver.go:358
↓ 1 callersFunctionwithInterceptors
(ctx context.Context, q Query, qr Querier, inters []Interceptor)
cmd/atlas/internal/migrate/ent/ent.go:562
↓ 1 callersFunctionwithRevision
withRevision sets the old Revision of the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:105
↓ 1 callersFunctionwithRevisionID
withRevisionID sets the ID field of the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:83
↓ 1 callersFunctionwithSuggestion
(_ *sqlcheck.Pass, r sqlcheck.Report, _ []*migrate.Stmt)
sql/sqlcheck/destructive/destructive.go:162
↓ 1 callersMethodwriteResource
(b *Resource, body *hclwrite.Body)
schemahcl/schemahcl.go:814
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:7983
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:8036
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:13791
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:13870
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:14166
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:14283
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20115
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20255
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:21170
MethodABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:21435
← previousnext →2,301–2,400 of 7,770, ranked by callers