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
intervalField
intervalField reports if the given string is an interval field type and returns its value (e.g. SECOND, MINUTE TO SECOND).
sql/postgres/convert.go:334
↓ 1 callers
Function
isBlob
blob literals are hex strings preceded by 'x' (or 'X).
sql/sqlite/inspect.go:461
↓ 1 callers
Method
isCheckpoint
isCheckpoint reports whether the file is a checkpoint file.
sql/migrate/dir.go:253
↓ 1 callers
Function
isEmpty
(v reflect.Value)
schemahcl/extension.go:604
↓ 1 callers
Method
isInterface
()
schemahcl/extension.go:649
↓ 1 callers
Method
isInterfaceSlice
()
schemahcl/extension.go:645
↓ 1 callers
Function
isLocalRef
(r *schemahcl.Ref)
sql/internal/specutil/convert.go:982
↓ 1 callers
Function
isOneRef
(v cty.Value)
schemahcl/schemahcl.go:739
↓ 1 callers
Function
isProjectFile
(f *hcl.File)
cmd/atlas/internal/cmdext/reader.go:370
↓ 1 callers
Method
isRange
()
schemahcl/extension.go:632
↓ 1 callers
Function
isRenameT
(c schema.Change, from, to string)
sql/sqlite/sqlitecheck/sqlitecheck.go:157
↓ 1 callers
Function
isSchemaDir
isSchemaDir returns true if the given path is a schema directory (not a migration directory).
cmd/atlas/internal/cmdext/reader.go:58
↓ 1 callers
Function
keySupportsFK
keySupportsFK reports if the index key was created automatically by MySQL to support the constraint. See sql/sql_table.cc#find_fk_supporting_key.
sql/mysql/diff.go:677
↓ 1 callers
Function
lineIfSet
(s string)
sql/mysql/sqlspec_test.go:1570
↓ 1 callers
Function
linkForeignKeys
linkForeignKeys creates the foreign keys defined in the Table's spec by creating references to column in the provided Schema. It is assumed that all t
sql/internal/specutil/convert.go:416
↓ 1 callers
Method
load
load the references from the children of the resource.
schemahcl/schemahcl.go:508
↓ 1 callers
Method
load
(path, env string, vars Vars)
cmd/atlas/internal/cmdapi/project.go:612
↓ 1 callers
Method
loadSpans
()
sql/sqlcheck/sqlcheck.go:226
↓ 1 callers
Method
lock
lock database so no one else interferes with our change detection.
cmd/atlas/internal/migratelint/lint.go:406
↓ 1 callers
Method
lookup
(ext any)
schemahcl/extension.go:52
↓ 1 callers
Method
marDefaultExpr
marDefaultExpr returns the correct schema.Expr based on the column attributes for MariaDB.
sql/mysql/inspect.go:618
↓ 1 callers
Method
mayAppendOps
mayAppendOps appends an operator_class attribute to the part in case it is not the default.
sql/postgres/inspect.go:586
↓ 1 callers
Method
mayCommit
mayCommit may commit a transaction depending on the given transaction mode.
cmd/atlas/internal/cmdapi/migrate.go:1379
↓ 1 callers
Method
mayFix
mayFix uses the sqlparse package for fixing or attaching more info to the changes.
cmd/atlas/internal/migratelint/lint.go:374
↓ 1 callers
Function
mayIndent
(dir *url.URL, f migrate.Formatter, format string)
cmd/atlas/internal/cmdapi/migrate.go:554
↓ 1 callers
Method
mayRollback
mayRollback may roll back a transaction depending on the given transaction mode.
cmd/atlas/internal/cmdapi/migrate.go:1369
↓ 1 callers
Function
mergeCtxVar
(ctx *hcl.EvalContext, values map[string]cty.Value)
schemahcl/context.go:273
↓ 1 callers
Function
migrateDiffRun
(cmd *cobra.Command, args []string, flags migrateDiffFlags, env *Env)
cmd/atlas/internal/cmdapi/cmdapi.go:808
↓ 1 callers
Function
migrateImportRun
(cmd *cobra.Command, _ []string, flags migrateImportFlags)
cmd/atlas/internal/cmdapi/migrate.go:690
↓ 1 callers
Function
migrateLintRun
migrateLintRun is the run command for 'migrate lint'.
cmd/atlas/internal/cmdapi/cmdapi.go:751
↓ 1 callers
Function
migrateLintSetFlags
migrateLintSetFlags allows setting extra flags for the 'migrate lint' command.
cmd/atlas/internal/cmdapi/cmdapi.go:748
↓ 1 callers
Function
migrateNewRun
(cmd *cobra.Command, args []string, flags migrateNewFlags)
cmd/atlas/internal/cmdapi/migrate.go:858
↓ 1 callers
Method
migrateOptions
()
cmd/atlas/internal/cmdapi/migrate.go:65
↓ 1 callers
Function
migrateSetRun
(cmd *cobra.Command, args []string, flags migrateSetFlags)
cmd/atlas/internal/cmdapi/migrate.go:925
↓ 1 callers
Function
migrateStatusRun
(cmd *cobra.Command, _ []string, flags migrateStatusFlags)
cmd/atlas/internal/cmdapi/migrate.go:1121
↓ 1 callers
Function
migrateValidateRun
(cmd *cobra.Command, _ []string, flags migrateValidateFlags)
cmd/atlas/internal/cmdapi/migrate.go:1198
↓ 1 callers
Method
modeFor
(f migrate.File)
cmd/atlas/internal/cmdapi/migrate.go:1396
↓ 1 callers
Method
modifyObject
(modify *schema.ModifyObject)
sql/postgres/driver.go:658
↓ 1 callers
Method
modifySchema
modifySchema builds and appends the migrate.Changes for bringing the schema into its modified state.
sql/mysql/migrate.go:157
↓ 1 callers
Method
modifyTable
modifyTable builds the statements that bring the table into its modified state.
sql/postgres/migrate.go:299
↓ 1 callers
Method
modifyTable
modifyTable builds and appends the migration changes for bringing the table into its modified state.
sql/mysql/migrate.go:296
↓ 1 callers
Method
modifyTable
modifyTable builds and executes the queries for bringing the table into its modified state. If the modification contains changes that are not index cr
sql/sqlite/migrate.go:192
↓ 1 callers
Function
modifyUsingTemp
modifyUsingTemp indicates if the 3 changes represents a table modification using the pattern mentioned in the link below: "CREATE", "INSERT", "DROP" a
sql/sqlite/sqlitecheck/sqlitecheck.go:123
↓ 1 callers
Method
mutate
(ctx context.Context, m *RevisionMutation)
cmd/atlas/internal/migrate/ent/client.go:327
↓ 1 callers
Method
myDefaultExpr
myDefaultExpr returns the correct schema.Expr based on the column attributes for MySQL.
sql/mysql/inspect.go:550
↓ 1 callers
Method
names
()
sql/sqltool/tool.go:528
↓ 1 callers
Method
needDiff
([]string)
cmd/atlas/internal/cmdext/cmdext.go:561
↓ 1 callers
Function
newConfig
newConfig creates a new config for the client.
cmd/atlas/internal/migrate/ent/client.go:70
↓ 1 callers
Function
newIndexStorage
newIndexStorage parses and returns the index storage parameters.
sql/postgres/inspect.go:1398
↓ 1 callers
Function
newTx
newTx creates a new transactional driver.
cmd/atlas/internal/migrate/ent/tx.go:180
↓ 1 callers
Method
noColumns
(table string)
sql/sqlite/inspect_test.go:577
↓ 1 callers
Method
noSearchPath
noSearchPath ensures the session search_path is clean when inspecting realms to ensures all referenced objects in the public schema (or any other defa
sql/postgres/inspect.go:68
↓ 1 callers
Function
nolintRules
(f *sqlcheck.File)
cmd/atlas/internal/migratelint/lint.go:1035
↓ 1 callers
Function
normalizeCRLF
normalizeCRLF for heredoc strings that inspected and printed in the HCL as-is to avoid having mixed endings in the printed file - Unix-like (default)
sql/sqlspec/sqlspec.go:138
↓ 1 callers
Function
objectSpec
objectSpec converts from a concrete schema objects into specs.
sql/postgres/driver.go:757
↓ 1 callers
Method
omitempty
()
schemahcl/extension.go:634
↓ 1 callers
Function
oneOfPrefix
(s string, ps ...string)
sql/internal/specutil/convert.go:1065
↓ 1 callers
Function
openAtlasDir
(context.Context, *url.URL)
cmd/atlas/internal/migrate/migrate.go:456
↓ 1 callers
Method
options
options applies the options on the config object.
cmd/atlas/internal/migrate/ent/client.go:77
↓ 1 callers
Function
parseBitParts
(parts []string, c *columnDesc)
sql/postgres/convert.go:453
↓ 1 callers
Function
parseCharParts
(parts []string, c *columnDesc)
sql/postgres/convert.go:430
↓ 1 callers
Function
parseColumn
(s string)
sql/postgres/convert.go:359
↓ 1 callers
Function
parseConfig
(ctx context.Context, path, env string, vars map[string]cty.Value)
cmd/atlas/internal/cmdapi/project.go:631
↓ 1 callers
Function
parseDirective
parseDirective returns the directive name and its arguments. Empty strings are returned if the directive is invalid.
sql/migrate/dir.go:296
↓ 1 callers
Function
parseExtra
parseExtra returns a parsed version of the EXTRA column from the INFORMATION_SCHEMA.COLUMNS table.
sql/mysql/inspect.go:490
↓ 1 callers
Function
parseFmtType
parseFmtType parses the formatted type returned from pg_catalog.format_type and extract the schema and type name.
sql/postgres/inspect.go:1428
↓ 1 callers
Function
parseHCLPaths
parseHCLPaths parses the HCL files in the given paths. If a path represents a directory, its direct descendants will be considered, skipping any subdi
cmd/atlas/internal/cmdext/reader.go:309
↓ 1 callers
Method
partAttrs
(b *sqlx.Builder, idx *schema.Index, p *schema.IndexPart)
sql/postgres/migrate.go:1045
↓ 1 callers
Function
partialParse
(path, env string)
cmd/atlas/internal/cmdapi/project.go:680
↓ 1 callers
Method
partitionChanged
partitionChanged checks and returns an error if the partition key of a table was changed.
sql/postgres/diff.go:165
↓ 1 callers
Method
partitions
partitions builds the partition each table in the schema.
sql/postgres/inspect.go:612
↓ 1 callers
Method
patch
(resource *Resource)
schemahcl/schemahcl.go:484
↓ 1 callers
Method
patchColumn
(_ context.Context, c *schema.Column)
sql/mysql/tidb.go:163
↓ 1 callers
Method
patchRealm
(r *schema.Realm)
sql/internal/sqlx/dev.go:224
↓ 1 callers
Function
patchRefs
patchRefs recursively searches for schemahcl.Ref under the provided schemahcl.Resource and patches any variables with their concrete names.
schemahcl/schemahcl.go:480
↓ 1 callers
Function
pickTypeAttrs
pickTypeAttrs returns the relevant Attrs matching the wanted TypeAttrs.
schemahcl/types.go:379
↓ 1 callers
Method
pkDiff
pkDiff returns the schema changes (if any) for migrating table primary-key from current state to the desired state.
sql/internal/sqlx/diff.go:347
↓ 1 callers
Function
pkName
(t *schema.Table, pk *schema.Index)
sql/postgres/migrate.go:1355
↓ 1 callers
Method
plan
Exec executes the changes on the database. An error is returned if one of the operations fail, or a change is not supported.
sql/postgres/migrate.go:67
↓ 1 callers
Method
plan
plan builds the migration plan for applying the given changes on the attached connection.
sql/mysql/migrate.go:71
↓ 1 callers
Method
plan
Exec executes the changes on the database. An error is returned if one of the operations fail, or a change is not supported.
sql/sqlite/migrate.go:79
↓ 1 callers
Function
popShow
(t *schema.Table)
sql/mysql/inspect.go:977
↓ 1 callers
Function
promptApply
(cmd *cobra.Command, flags schemaApplyFlags, diff *diff, client, _ *sqlclient.Client)
cmd/atlas/internal/cmdapi/cmdapi.go:1123
↓ 1 callers
Function
querierAll
()
cmd/atlas/internal/migrate/ent/ent.go:538
↓ 1 callers
Function
readHashFile
readHashFile reads the HashFile from the given Dir.
sql/migrate/dir.go:922
↓ 1 callers
Function
readerUseDev
readerUseDev reports if any of the URL uses the dev-database.
cmd/atlas/internal/cmdapi/cmdapi.go:519
↓ 1 callers
Function
removeObj
removeObj removes the given object from the list of objects.
sql/schema/dsl.go:289
↓ 1 callers
Method
renameTable
(c *schema.RenameTable)
sql/postgres/migrate.go:791
↓ 1 callers
Method
renameTable
(c *schema.RenameTable)
sql/mysql/migrate.go:505
↓ 1 callers
Method
renameTable
(c *schema.RenameTable)
sql/sqlite/migrate.go:228
↓ 1 callers
Function
replaceOrAppendAttr
(attrs []*Attr, attr *Attr)
schemahcl/spec.go:487
↓ 1 callers
Method
reporterFor
(rw sqlcheck.ReportWriter, az sqlcheck.Analyzer)
cmd/atlas/internal/migratelint/lint.go:1069
↓ 1 callers
Function
requireFileEqual
(t *testing.T, d migrate.Dir, name, contents string)
sql/sqltool/tool_test.go:433
↓ 1 callers
Function
resetFromEnv
resetFromEnv traverses the command flags, records what flags were not set by the user and returns a callback to clear them after it was set by the cur
cmd/atlas/internal/cmdapi/cmdapi.go:451
↓ 1 callers
Method
resource
resource converts the hcl file to a schemahcl.Resource.
schemahcl/schemahcl.go:526
↓ 1 callers
Function
runCmdContext
(ctx context.Context, cmd *cobra.Command, args ...string)
cmd/atlas/internal/cmdapi/cmdapi_test.go:35
↓ 1 callers
Method
runCommandStream
runCommandStream runs the given command streams its output split by new-lines.
atlasexec/atlas.go:317
↓ 1 callers
Function
runRevisionsTests
(ctx context.Context, t *testing.T, drv migrate.Driver, r RevisionReadWriter)
cmd/atlas/internal/migrate/migrate_test.go:132
↓ 1 callers
Function
sameFK
(fk1, fk2 *schema.ForeignKey)
sql/sqlite/diff.go:208
↓ 1 callers
Function
sameType
(t1, t2 Type, targetComparable bool)
sql/schema/schema.go:651
← previous
next →
2,201–2,300 of 7,770, ranked by callers