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
↓ 2 callers
Function
isURL
isURL returns true if the given string is an Atlas URL with a scheme.
cmd/atlas/internal/cmdapi/migrate.go:1606
↓ 2 callers
Function
jsonDecodeErr
(fn func([]*T, string) error)
atlasexec/atlas.go:555
↓ 2 callers
Function
labels
(r *Resource)
schemahcl/schemahcl.go:833
↓ 2 callers
Method
loadRealm
()
internal/integration/sqlite_test.go:819
↓ 2 callers
Method
loadTable
(name string)
internal/integration/sqlite_test.go:836
↓ 2 callers
Method
loadTable
(name string)
internal/integration/mysql_test.go:1493
↓ 2 callers
Method
loadTable
(name string)
internal/integration/postgres_test.go:1641
↓ 2 callers
Method
loadTable
(name string)
internal/integration/cockroach_test.go:826
↓ 2 callers
Function
logApply
(cmd *cobra.Command, w io.Writer, flags migrateApplyFlags, r *cmdlog.MigrateApply)
cmd/atlas/internal/cmdapi/migrate.go:470
↓ 2 callers
Function
maskNoPlan
maskNoPlan masks ErrNoPlan errors.
cmd/atlas/internal/cmdapi/migrate.go:603
↓ 2 callers
Function
matchErr
(ts *testscript.TestScript, err error, p string)
internal/integration/script_test.go:751
↓ 2 callers
Function
matchFK
matchFK reports if the foreign-key matches the given attributes.
sql/sqlite/inspect.go:582
↓ 2 callers
Function
mayExtend
mayExtend the given collation/charset map from information schema.
sql/mysql/internal/mysqlversion/mysqlversion.go:130
↓ 2 callers
Function
mayParse
mayParse will parse the file in path if it is an HCL file. If the file is an Atlas project file an error is returned.
cmd/atlas/internal/cmdext/reader.go:356
↓ 2 callers
Function
maySetLoginContext
(*cobra.Command, *Project)
cmd/atlas/internal/cmdapi/cmdapi.go:1130
↓ 2 callers
Method
maySetSchemaQualifier
maySetSchemaQualifier sets the schema on the atlas_schema_revisions table for cases the migration should use qualified identifiers due to some limitat
cmd/atlas/internal/migrate/migrate.go:293
↓ 2 callers
Method
merge
merge merges the doc d1 into d.
sql/postgres/sqlspec.go:124
↓ 2 callers
Function
migrateApplyRun
migrateApplyRun represents the 'atlas migrate apply' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:1717
↓ 2 callers
Function
migrateSchema
(t TestingT, c *ent.Client, o *options)
cmd/atlas/internal/migrate/ent/enttest/enttest.go:78
↓ 2 callers
Function
migrateStatusCmd
migrateStatusCmd represents the 'atlas migrate status' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:1087
↓ 2 callers
Function
modeSchemaOrAll
modeSchemaOrAll returns the inspect mode based on the exclude patterns.
sql/internal/sqlx/sqlx.go:251
↓ 2 callers
Function
newListener
(t *testing.T, handler func(c net.Conn))
internal/integration/integration_test.go:105
↓ 2 callers
Function
newOptions
(opts []Option)
cmd/atlas/internal/migrate/ent/enttest/enttest.go:51
↓ 2 callers
Method
next
next returns the next state of the database after executing the statements in the file. The changes detected by the statements are attached to the fil
cmd/atlas/internal/migratelint/lint.go:338
↓ 2 callers
Method
nextStmts
nextStmts is a version of "next" but accepts the statements to execute.
cmd/atlas/internal/migratelint/lint.go:347
↓ 2 callers
Method
normalize
(table *schema.Table)
sql/postgres/crdb.go:94
↓ 2 callers
Function
normalizeRealm
(*schema.Realm)
sql/postgres/driver.go:752
↓ 2 callers
Function
nullsNotDistinct
nullsNotDistinct handles the NULLS [NOT] DISTINCT clause for indexes.
sql/postgres/migrate.go:1375
↓ 2 callers
Method
openClient
openClient allows opening environment-aware clients.
cmd/atlas/internal/cmdapi/cmdapi.go:1145
↓ 2 callers
Function
opener
opener for the given driver name.
sql/mysql/driver.go:102
↓ 2 callers
Method
parseParams
parseParams parses index class parameters defined in HCL or returned from the database. For example: '{k=v}', '(k1=v1,k2=v2)'.
sql/postgres/inspect.go:1382
↓ 2 callers
Function
parseV
parseV returns a user facing version and release notes url
cmd/atlas/internal/cmdapi/cmdapi.go:176
↓ 2 callers
Method
partsChange
(fromI, toI *schema.Index, renames map[string]string)
sql/internal/sqlx/diff.go:439
↓ 2 callers
Method
patchObjects
(objs []schema.Object, prefix ...string)
sql/internal/sqlx/dev.go:231
↓ 2 callers
Method
patchSchema
pathSchema fixes: https://github.com/cockroachdb/cockroach/issues/82040.
sql/postgres/crdb.go:34
↓ 2 callers
Method
patchSchema
(ctx context.Context, s *schema.Schema)
sql/mysql/tidb.go:142
↓ 2 callers
Method
patchSchema
(s *schema.Schema)
sql/internal/sqlx/dev.go:249
↓ 2 callers
Method
plan
(ctx context.Context, name string, to StateReader, realmScope bool)
sql/migrate/migrate.go:413
↓ 2 callers
Function
priority
priority computes the priority of each change. TiDB does not support multischema ALTERs (i.e. multiple changes in a single ALTER statement). Therefor
sql/mysql/tidb.go:36
↓ 2 callers
Function
promptUser
(cmd *cobra.Command)
cmd/atlas/internal/cmdapi/schema.go:502
↓ 2 callers
Function
putShow
(t *schema.Table)
sql/mysql/inspect.go:966
↓ 2 callers
Method
putTable
(t *schema.Table, tk string)
sql/internal/sqlx/dev.go:182
↓ 2 callers
Method
querySpec
()
cmd/atlas/internal/migrate/ent/revision_query.go:376
↓ 2 callers
Method
realm
()
internal/integration/sqlite_test.go:902
↓ 2 callers
Method
realm
()
internal/integration/mysql_test.go:1377
↓ 2 callers
Method
realm
()
internal/integration/postgres_test.go:1708
↓ 2 callers
Method
realm
()
internal/integration/cockroach_test.go:893
↓ 2 callers
Function
removed
(line, total, pos int, file string)
sql/migrate/dir_test.go:660
↓ 2 callers
Function
repeatFlag
repeatFlag repeats the flag for each value.
atlasexec/atlas.go:572
↓ 2 callers
Function
replaceDBURL
(env *testscript.Env, url string)
internal/integration/script_test.go:118
↓ 2 callers
Function
requireEqualRevision
(t *testing.T, expected, actual *migrate.Revision)
sql/migrate/migrate_test.go:781
↓ 2 callers
Function
revisionSchemaName
(c *sqlclient.Client, flag string)
cmd/atlas/internal/cmdapi/migrate.go:1289
↓ 2 callers
Method
rsearch
rsearch is the reversed version of search. It returns the index of the last call to f that returns true, or -1.
sql/schema/migrate.go:550
↓ 2 callers
Function
runCheck
(ctx context.Context, vc *vercheck.VerChecker, version string)
cmd/atlas/main.go:119
↓ 2 callers
Method
runErr
(err error, stdout, stderr interface{ String() string })
atlasexec/atlas.go:363
↓ 2 callers
Function
scanExpr
scanExpr scans the expression string (wrapped with parens) until its end in the given string. e.g. "(a+1), c int ...".
sql/sqlite/inspect.go:625
↓ 2 callers
Function
scanWithInterceptors
(ctx context.Context, rootQuery Q1, selectOrGroup Q2, inters []Interceptor, v any)
cmd/atlas/internal/migrate/ent/ent.go:577
↓ 2 callers
Function
schemaApplyRun
(cmd *cobra.Command, flags schemaApplyFlags, env *Env)
cmd/atlas/internal/cmdapi/cmdapi.go:936
↓ 2 callers
Function
schemaCleanCmd
schemaCleanCmd represents the 'atlas schema clean' subcommand.
cmd/atlas/internal/cmdapi/schema.go:182
↓ 2 callers
Method
schemaDiff
(from, to *schema.Schema, opts *schema.DiffOptions)
sql/internal/sqlx/diff.go:170
↓ 2 callers
Function
schemaFlagsFromConfig
(cmd *cobra.Command)
cmd/atlas/internal/cmdapi/schema.go:366
↓ 2 callers
Function
schemaFmtCmd
schemaFmtCmd represents the 'atlas schema fmt' subcommand.
cmd/atlas/internal/cmdapi/schema.go:295
↓ 2 callers
Function
schemaSpec
schemaSpec converts from a concrete Postgres schema to Atlas specification.
sql/postgres/sqlspec.go:700
↓ 2 callers
Method
schemas
schemas returns the list of the schemas in the database.
sql/postgres/inspect.go:724
↓ 2 callers
Method
schemas
schemas returns the list of the schemas in the database.
sql/mysql/inspect.go:106
↓ 2 callers
Function
selectScheme
selectScheme validates the scheme of the provided to urls and returns the selected url scheme. Currently, all URLs must be of the same scheme, and onl
cmd/atlas/internal/cmdapi/migrate.go:1481
↓ 2 callers
Method
setDelim
(d string)
sql/migrate/lex.go:523
↓ 2 callers
Function
setLocalVars
setLocalVars extends the context with the local block variables (references) so they can be referenced in later stages. For example, an index block ma
schemahcl/schemahcl.go:573
↓ 2 callers
Function
setupScript
(env *testscript.Env, db *sql.DB, createCmd, dropCmd string, open func(testing.TB, string) migrate.Driver)
internal/integration/script_test.go:145
↓ 2 callers
Function
similarCheck
similarCheck returns a CHECK by its constraints name or expression.
sql/internal/sqlx/diff.go:743
↓ 2 callers
Method
sqlQuery
(ctx context.Context)
cmd/atlas/internal/migrate/ent/revision_query.go:416
↓ 2 callers
Function
sqlitedb
(t *testing.T, seed string)
atlasexec/atlas_test.go:193
↓ 2 callers
Function
stateReaderHCL
stateReaderHCL is shared between StateReaderHCL and "hcl_schema" datasource.
cmd/atlas/internal/cmdext/reader.go:140
↓ 2 callers
Function
stateSchemaSQL
stateSchemaSQL wraps stateReaderSQL for SQL schema files or directories to control errors when replay/read fails.
cmd/atlas/internal/cmdext/reader.go:71
↓ 2 callers
Function
summary
(cmd *cobra.Command, c *sqlclient.Client, changes []schema.Change, t *template.Template)
cmd/atlas/internal/cmdapi/cmdapi.go:1112
↓ 2 callers
Function
supportsCharset
supportsCharset reports if the given type supports the CHARSET and COLLATE clauses. See: https://dev.mysql.com/doc/refman/8.0/en/charset-column.html
sql/mysql/migrate.go:797
↓ 2 callers
Function
table
table extracts a table from the given change.
sql/internal/sqlx/plan.go:291
↓ 2 callers
Method
tableDiff
tableDiff implements the table diffing but skips the table name check.
sql/internal/sqlx/diff.go:233
↓ 2 callers
Method
tables
tableNames returns a list of all tables exist in the schema.
sql/sqlite/inspect.go:289
↓ 2 callers
Function
testAdvisoryLock
(t *testing.T, l schema.Locker)
internal/integration/integration_test.go:647
↓ 2 callers
Function
testCLIMigrateApplyBC
(t T, dialect string)
internal/integration/integration_test.go:224
↓ 2 callers
Function
testCLISchemaApplyFromMigrationDir
(t T)
internal/integration/integration_test.go:538
↓ 2 callers
Method
toAttrs
(ctx *hcl.EvalContext, opts *EvalOptions, hclAttrs hclsyntax.Attributes, scope []string)
schemahcl/schemahcl.go:610
↓ 2 callers
Function
trimCast
(s string)
sql/postgres/diff.go:571
↓ 2 callers
Function
trimSchema
trimSchema returns the given type without the schema qualifier.
sql/postgres/diff.go:411
↓ 2 callers
Function
typeFuncReqArgs
typeFuncReqArgs returns the required type attributes that are configured via arguments. for instance, in MySQL a field may be defined as both `int` an
schemahcl/schemahcl.go:1221
↓ 2 callers
Function
typeRefs
typeRefs returns all type referenced in the body.
schemahcl/context.go:490
↓ 2 callers
Function
validIdent
validIdent reports if the given string can be used as an identifier in a reference.
schemahcl/context.go:363
↓ 2 callers
Function
valueArgs
(spec *TypeAttr, v cty.Value)
schemahcl/schemahcl.go:994
↓ 2 callers
Method
valueByVersion
(values map[string]string, defaults string)
internal/integration/postgres_test.go:1617
↓ 2 callers
Function
violations
(ctx context.Context, conn schema.ExecQuerier)
sql/sqlite/driver.go:336
↓ 2 callers
Function
wasAddedBack
(changes []*sqlcheck.Change, old *schema.Column)
sql/sqlcheck/incompatible/incompatible.go:113
↓ 2 callers
Method
writeAttr
(attr *Attr, body *hclwrite.Body)
schemahcl/schemahcl.go:844
↓ 2 callers
Method
writeSum
writeSum writes the sum file to the Dir, if enabled.
sql/migrate/migrate.go:555
↓ 1 callers
Method
Accept
(visitor antlr.ParseTreeVisitor)
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:12486
↓ 1 callers
Method
AddApplied
AddApplied adds value to the "applied" field.
cmd/atlas/internal/migrate/ent/revision_update.go:75
↓ 1 callers
Method
AddApplied
AddApplied adds i to the "applied" field.
cmd/atlas/internal/migrate/ent/mutation.go:292
↓ 1 callers
Method
AddAttrs
AddAttrs adds and additional attributes to the index-part.
sql/schema/dsl.go:794
↓ 1 callers
Method
AddDeps
AddDeps adds the given dependencies to the view.
sql/schema/dsl.go:163
↓ 1 callers
Method
AddExecutionTime
AddExecutionTime adds value to the "execution_time" field.
cmd/atlas/internal/migrate/ent/revision_update.go:117
← previous
next →
1,101–1,200 of 7,770, ranked by callers