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
Function
scanAttr
(key string, r *Resource, field reflect.Value)
schemahcl/extension.go:537
↓ 1 callers
Function
scanPtr
(key string, r *Resource, field reflect.Value)
schemahcl/extension.go:516
↓ 1 callers
Function
scanString
(s string)
schemahcl/spec.go:366
↓ 1 callers
Method
scanValues
scanValues returns the types for scanning values from sql.Rows.
cmd/atlas/internal/migrate/ent/revision.go:52
↓ 1 callers
Function
schemaApplyRunE
schemaApplyRunE is the community version of the 'atlas schema apply' command.
cmd/atlas/internal/cmdapi/cmdapi.go:907
↓ 1 callers
Function
schemaCleanRun
(cmd *cobra.Command, _ []string, flags schemaCleanFlags)
cmd/atlas/internal/cmdapi/schema.go:209
↓ 1 callers
Function
schemaDiffCmdWithFlags
()
cmd/atlas/internal/cmdapi/schema.go:256
↓ 1 callers
Function
schemaDiffRun
(cmd *cobra.Command, _ []string, flags schemaDiffFlags, env *Env)
cmd/atlas/internal/cmdapi/cmdapi.go:1052
↓ 1 callers
Function
schemaFmtRun
(cmd *cobra.Command, args []string)
cmd/atlas/internal/cmdapi/schema.go:313
↓ 1 callers
Function
schemaInspectCmdWithFlags
()
cmd/atlas/internal/cmdapi/cmdapi.go:1163
↓ 1 callers
Function
schemaInspectRun
(cmd *cobra.Command, _ []string, flags schemaInspectFlags, env *Env)
cmd/atlas/internal/cmdapi/cmdapi.go:1210
↓ 1 callers
Method
sequence
sequence returns the inspected name of the sequence or the standard name defined by postgres.
sql/postgres/inspect.go:1284
↓ 1 callers
Method
setAutoInc
setAutoInc extracts the updated AUTO_INCREMENT from CREATE TABLE.
sql/mysql/inspect.go:914
↓ 1 callers
Method
setAutoIncrement
setCollate extracts the updated Collation from CREATE TABLE statement.
sql/mysql/tidb.go:205
↓ 1 callers
Function
setChildSlice
(field reflect.Value, children []*Resource)
schemahcl/extension.go:289
↓ 1 callers
Method
setCollate
setCollate extracts the updated Collation from CREATE TABLE statement.
sql/mysql/tidb.go:190
↓ 1 callers
Function
setEnvs
(context.Context, []*Env)
cmd/atlas/internal/cmdapi/cmdapi.go:1134
↓ 1 callers
Function
setField
(field reflect.Value, attr *Attr)
schemahcl/extension.go:310
↓ 1 callers
Function
setGenExpr
setGenExpr extracts the generated expression from the CREATE statement and appends it to the column.
sql/sqlite/inspect.go:502
↓ 1 callers
Method
setIndexParser
setIndexParser updates the FULLTEXT parser from CREATE TABLE statement.
sql/mysql/inspect.go:938
↓ 1 callers
Method
setInputVals
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 callers
Function
setPtr
(field reflect.Value, cv cty.Value)
schemahcl/extension.go:352
↓ 1 callers
Function
setSliceAttr
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 callers
Function
setupFmtTest
(t *testing.T, inputDir map[string]string)
cmd/atlas/internal/cmdapi/schema_test.go:1137
↓ 1 callers
Method
showCreate
showCreate sets and fixes schema elements that require information from the 'SHOW CREATE' command.
sql/mysql/inspect.go:512
↓ 1 callers
Method
similarUnnamedIndex
similarUnnamedIndex searches for an unnamed index with the same index-parts in the table.
sql/internal/sqlx/diff.go:504
↓ 1 callers
Function
skipAutoChanges
skipAutoChanges filters unnecessary changes that are automatically happened by the database when ALTER TABLE is executed.
sql/postgres/migrate.go:1203
↓ 1 callers
Function
skipAutoChanges
skipAutoChanges filters unnecessary changes that are automatically happened by the database when ALTER TABLE is executed.
sql/mysql/migrate.go:756
↓ 1 callers
Method
skipBegin
()
sql/migrate/lex.go:407
↓ 1 callers
Method
skipBeginAtomic
()
sql/migrate/lex.go:346
↓ 1 callers
Method
skipBeginTryCatch
()
sql/migrate/lex.go:372
↓ 1 callers
Method
skipDollarQuote
()
sql/migrate/lex.go:325
↓ 1 callers
Method
skipGoCount
skipGoCount checks if the scanned "GO"
sql/migrate/lex.go:506
↓ 1 callers
Method
skipQuote
(quote rune)
sql/migrate/lex.go:308
↓ 1 callers
Method
sortChanges
(changes []schema.Change)
sql/postgres/driver.go:862
↓ 1 callers
Function
sortMap
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 callers
Function
split
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 callers
Method
sqlAll
(ctx context.Context, hooks ...queryHook)
cmd/atlas/internal/migrate/ent/revision_query.go:338
↓ 1 callers
Method
sqlCount
(ctx context.Context)
cmd/atlas/internal/migrate/ent/revision_query.go:365
↓ 1 callers
Function
sqlDiff
(diff *SchemaDiff, indent ...string)
cmd/atlas/internal/cmdlog/cmdlog.go:999
↓ 1 callers
Function
sqlInspect
(report *SchemaInspect, indent ...string)
cmd/atlas/internal/cmdlog/cmdlog.go:945
↓ 1 callers
Method
sqlScan
(ctx context.Context, root *RevisionQuery, v any)
cmd/atlas/internal/migrate/ent/revision_query.go:520
↓ 1 callers
Function
stdFuncs
standard functions exist in schemahcl language.
schemahcl/stdlib.go:110
↓ 1 callers
Function
stdTypes
(ctx *hcl.EvalContext)
schemahcl/stdlib.go:29
↓ 1 callers
Method
store
(path, env string, vars Vars, p *Project, e []*Env)
cmd/atlas/internal/cmdapi/project.go:619
↓ 1 callers
Method
summary
(ctx context.Context)
cmd/atlas/internal/migratelint/lint.go:494
↓ 1 callers
Method
supportsCheck
supportsCheck reports if the connected database supports the CHECK clause, and return the querying for getting them.
sql/mysql/inspect.go:455
↓ 1 callers
Method
supportsIndexInclude
supportsIndexInclude reports if the server supports the INCLUDE clause.
sql/postgres/driver.go:404
↓ 1 callers
Method
supportsIndexNullsDistinct
supportsIndexNullsDistinct reports if the server supports the NULLS [NOT] DISTINCT clause.
sql/postgres/driver.go:409
↓ 1 callers
Method
systemVerChange
systemVerChange returns the schema change for migrating the system versioning attributes if it was changed.
sql/mysql/diff.go:366
↓ 1 callers
Method
tableAttrDiff
tableAttrDiff allows extending table attributes diffing with build-specific logic.
sql/postgres/driver.go:611
↓ 1 callers
Function
tableAttrsSpec
(*schema.Table, *sqlspec.Table)
sql/postgres/driver.go:602
↓ 1 callers
Method
tableSeq
tableSeq sets the sequence value of the table if it was provided by the user on table creation.
sql/sqlite/migrate.go:507
↓ 1 callers
Method
tables
table returns the table from the database, or a NotExistError if the table was not found.
sql/postgres/inspect.go:162
↓ 1 callers
Method
tables
(ctx context.Context, realm *schema.Realm, opts *schema.InspectOptions)
sql/mysql/inspect.go:151
↓ 1 callers
Method
tablesQuery
(context.Context)
sql/mysql/driver.go:482
↓ 1 callers
Method
tablesQueryArgs
(context.Context)
sql/mysql/driver.go:486
↓ 1 callers
Function
tasks
(path string)
cmd/atlas/internal/cmdapi/schema.go:524
↓ 1 callers
Function
testCLISchemaInspectEnv
(t T, h string, env string, eval schemahcl.Evaluator)
internal/integration/integration_test.go:356
↓ 1 callers
Function
testingURL
(endpoint string)
cmd/atlas/internal/cloudapi/client.go:417
↓ 1 callers
Method
tidb
()
internal/integration/mysql_test.go:1502
↓ 1 callers
Method
toResource
(ctx *hcl.EvalContext, opts *EvalOptions, block *hclsyntax.Block, scope []string, dec *blockDef)
schemahcl/schemahcl.go:744
↓ 1 callers
Method
topLevel
topLevel executes first the changes for creating or dropping schemas and create objects that tables might depend on.
sql/postgres/migrate.go:111
↓ 1 callers
Method
topLevel
topLevel appends first the changes for creating or dropping schemas (top-level schema elements).
sql/mysql/migrate.go:109
↓ 1 callers
Function
txmodeFor
txmodeFor returns the transaction mode for the given file.
cmd/atlas/internal/cmdapi/migrate.go:1415
↓ 1 callers
Function
typeChanged
(from, to *schema.Column, ns string)
sql/postgres/diff.go:341
↓ 1 callers
Method
typeChanged
(from, to *schema.Column)
sql/postgres/diff.go:337
↓ 1 callers
Method
typeChanged
(from, to *schema.Column)
sql/mysql/diff.go:490
↓ 1 callers
Method
typeChanged
typeChanged reports if the column type was changed.
sql/sqlite/diff.go:92
↓ 1 callers
Method
typeError
typeError improves diagnostic reporting in case of parse error.
schemahcl/schemahcl.go:677
↓ 1 callers
Function
typeFuncSpec
typeFuncSpec returns the HCL function for defining the type in the spec.
schemahcl/schemahcl.go:1146
↓ 1 callers
Function
typeFuncSpecImpl
typeFuncSpecImpl returns the function implementation for the HCL function spec.
schemahcl/schemahcl.go:1177
↓ 1 callers
Function
typeNonFuncArgs
typeNonFuncArgs returns the type attributes that are NOT configured via arguments to the type definition, `int unsigned`.
schemahcl/types.go:367
↓ 1 callers
Method
unique
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1162
↓ 1 callers
Function
uniqueConstChanged
(_, _ []schema.Attr)
sql/postgres/driver.go:846
↓ 1 callers
Method
users
()
internal/integration/sqlite_test.go:844
↓ 1 callers
Method
users
()
internal/integration/mysql_test.go:1391
↓ 1 callers
Method
users
()
internal/integration/postgres_test.go:1649
↓ 1 callers
Method
users
()
internal/integration/cockroach_test.go:834
↓ 1 callers
Function
validSpec
(typeSpec *TypeSpec)
schemahcl/types.go:114
↓ 1 callers
Method
validate
validate that no empty values are given.
cmd/atlas/internal/docker/docker.go:533
↓ 1 callers
Function
validateStructPtr
(target any)
schemahcl/extension.go:267
↓ 1 callers
Function
vercheckEndpoint
(context.Context)
cmd/atlas/main.go:135
↓ 1 callers
Method
verifyTime
()
cmd/atlas/internal/cmdapi/vercheck/vercheck.go:106
↓ 1 callers
Function
violationsDiff
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 callers
Function
withInterceptors
(ctx context.Context, q Query, qr Querier, inters []Interceptor)
cmd/atlas/internal/migrate/ent/ent.go:562
↓ 1 callers
Function
withRevision
withRevision sets the old Revision of the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:105
↓ 1 callers
Function
withRevisionID
withRevisionID sets the ID field of the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:83
↓ 1 callers
Function
withSuggestion
(_ *sqlcheck.Pass, r sqlcheck.Report, _ []*migrate.Stmt)
sql/sqlcheck/destructive/destructive.go:162
↓ 1 callers
Method
writeResource
(b *Resource, body *hclwrite.Body)
schemahcl/schemahcl.go:814
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:7983
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:8036
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:13791
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:13870
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:14166
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:14283
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20115
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20255
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:21170
Method
ABORT_
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:21435
← previous
next →
2,301–2,400 of 7,770, ranked by callers