MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 1 callersFunctionintervalField
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 callersFunctionisBlob
blob literals are hex strings preceded by 'x' (or 'X).
sql/sqlite/inspect.go:461
↓ 1 callersMethodisCheckpoint
isCheckpoint reports whether the file is a checkpoint file.
sql/migrate/dir.go:253
↓ 1 callersFunctionisEmpty
(v reflect.Value)
schemahcl/extension.go:604
↓ 1 callersMethodisInterface
()
schemahcl/extension.go:649
↓ 1 callersMethodisInterfaceSlice
()
schemahcl/extension.go:645
↓ 1 callersFunctionisLocalRef
(r *schemahcl.Ref)
sql/internal/specutil/convert.go:982
↓ 1 callersFunctionisOneRef
(v cty.Value)
schemahcl/schemahcl.go:739
↓ 1 callersFunctionisProjectFile
(f *hcl.File)
cmd/atlas/internal/cmdext/reader.go:370
↓ 1 callersMethodisRange
()
schemahcl/extension.go:632
↓ 1 callersFunctionisRenameT
(c schema.Change, from, to string)
sql/sqlite/sqlitecheck/sqlitecheck.go:157
↓ 1 callersFunctionisSchemaDir
isSchemaDir returns true if the given path is a schema directory (not a migration directory).
cmd/atlas/internal/cmdext/reader.go:58
↓ 1 callersFunctionkeySupportsFK
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 callersFunctionlineIfSet
(s string)
sql/mysql/sqlspec_test.go:1570
↓ 1 callersFunctionlinkForeignKeys
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 callersMethodload
load the references from the children of the resource.
schemahcl/schemahcl.go:508
↓ 1 callersMethodload
(path, env string, vars Vars)
cmd/atlas/internal/cmdapi/project.go:612
↓ 1 callersMethodloadSpans
()
sql/sqlcheck/sqlcheck.go:226
↓ 1 callersMethodlock
lock database so no one else interferes with our change detection.
cmd/atlas/internal/migratelint/lint.go:406
↓ 1 callersMethodlookup
(ext any)
schemahcl/extension.go:52
↓ 1 callersMethodmarDefaultExpr
marDefaultExpr returns the correct schema.Expr based on the column attributes for MariaDB.
sql/mysql/inspect.go:618
↓ 1 callersMethodmayAppendOps
mayAppendOps appends an operator_class attribute to the part in case it is not the default.
sql/postgres/inspect.go:586
↓ 1 callersMethodmayCommit
mayCommit may commit a transaction depending on the given transaction mode.
cmd/atlas/internal/cmdapi/migrate.go:1379
↓ 1 callersMethodmayFix
mayFix uses the sqlparse package for fixing or attaching more info to the changes.
cmd/atlas/internal/migratelint/lint.go:374
↓ 1 callersFunctionmayIndent
(dir *url.URL, f migrate.Formatter, format string)
cmd/atlas/internal/cmdapi/migrate.go:554
↓ 1 callersMethodmayRollback
mayRollback may roll back a transaction depending on the given transaction mode.
cmd/atlas/internal/cmdapi/migrate.go:1369
↓ 1 callersFunctionmergeCtxVar
(ctx *hcl.EvalContext, values map[string]cty.Value)
schemahcl/context.go:273
↓ 1 callersFunctionmigrateDiffRun
(cmd *cobra.Command, args []string, flags migrateDiffFlags, env *Env)
cmd/atlas/internal/cmdapi/cmdapi.go:808
↓ 1 callersFunctionmigrateImportRun
(cmd *cobra.Command, _ []string, flags migrateImportFlags)
cmd/atlas/internal/cmdapi/migrate.go:690
↓ 1 callersFunctionmigrateLintRun
migrateLintRun is the run command for 'migrate lint'.
cmd/atlas/internal/cmdapi/cmdapi.go:751
↓ 1 callersFunctionmigrateLintSetFlags
migrateLintSetFlags allows setting extra flags for the 'migrate lint' command.
cmd/atlas/internal/cmdapi/cmdapi.go:748
↓ 1 callersFunctionmigrateNewRun
(cmd *cobra.Command, args []string, flags migrateNewFlags)
cmd/atlas/internal/cmdapi/migrate.go:858
↓ 1 callersMethodmigrateOptions
()
cmd/atlas/internal/cmdapi/migrate.go:65
↓ 1 callersFunctionmigrateSetRun
(cmd *cobra.Command, args []string, flags migrateSetFlags)
cmd/atlas/internal/cmdapi/migrate.go:925
↓ 1 callersFunctionmigrateStatusRun
(cmd *cobra.Command, _ []string, flags migrateStatusFlags)
cmd/atlas/internal/cmdapi/migrate.go:1121
↓ 1 callersFunctionmigrateValidateRun
(cmd *cobra.Command, _ []string, flags migrateValidateFlags)
cmd/atlas/internal/cmdapi/migrate.go:1198
↓ 1 callersMethodmodeFor
(f migrate.File)
cmd/atlas/internal/cmdapi/migrate.go:1396
↓ 1 callersMethodmodifyObject
(modify *schema.ModifyObject)
sql/postgres/driver.go:658
↓ 1 callersMethodmodifySchema
modifySchema builds and appends the migrate.Changes for bringing the schema into its modified state.
sql/mysql/migrate.go:157
↓ 1 callersMethodmodifyTable
modifyTable builds the statements that bring the table into its modified state.
sql/postgres/migrate.go:299
↓ 1 callersMethodmodifyTable
modifyTable builds and appends the migration changes for bringing the table into its modified state.
sql/mysql/migrate.go:296
↓ 1 callersMethodmodifyTable
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 callersFunctionmodifyUsingTemp
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 callersMethodmutate
(ctx context.Context, m *RevisionMutation)
cmd/atlas/internal/migrate/ent/client.go:327
↓ 1 callersMethodmyDefaultExpr
myDefaultExpr returns the correct schema.Expr based on the column attributes for MySQL.
sql/mysql/inspect.go:550
↓ 1 callersMethodnames
()
sql/sqltool/tool.go:528
↓ 1 callersMethodneedDiff
([]string)
cmd/atlas/internal/cmdext/cmdext.go:561
↓ 1 callersFunctionnewConfig
newConfig creates a new config for the client.
cmd/atlas/internal/migrate/ent/client.go:70
↓ 1 callersFunctionnewIndexStorage
newIndexStorage parses and returns the index storage parameters.
sql/postgres/inspect.go:1398
↓ 1 callersFunctionnewTx
newTx creates a new transactional driver.
cmd/atlas/internal/migrate/ent/tx.go:180
↓ 1 callersMethodnoColumns
(table string)
sql/sqlite/inspect_test.go:577
↓ 1 callersMethodnoSearchPath
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 callersFunctionnolintRules
(f *sqlcheck.File)
cmd/atlas/internal/migratelint/lint.go:1035
↓ 1 callersFunctionnormalizeCRLF
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 callersFunctionobjectSpec
objectSpec converts from a concrete schema objects into specs.
sql/postgres/driver.go:757
↓ 1 callersMethodomitempty
()
schemahcl/extension.go:634
↓ 1 callersFunctiononeOfPrefix
(s string, ps ...string)
sql/internal/specutil/convert.go:1065
↓ 1 callersFunctionopenAtlasDir
(context.Context, *url.URL)
cmd/atlas/internal/migrate/migrate.go:456
↓ 1 callersMethodoptions
options applies the options on the config object.
cmd/atlas/internal/migrate/ent/client.go:77
↓ 1 callersFunctionparseBitParts
(parts []string, c *columnDesc)
sql/postgres/convert.go:453
↓ 1 callersFunctionparseCharParts
(parts []string, c *columnDesc)
sql/postgres/convert.go:430
↓ 1 callersFunctionparseColumn
(s string)
sql/postgres/convert.go:359
↓ 1 callersFunctionparseConfig
(ctx context.Context, path, env string, vars map[string]cty.Value)
cmd/atlas/internal/cmdapi/project.go:631
↓ 1 callersFunctionparseDirective
parseDirective returns the directive name and its arguments. Empty strings are returned if the directive is invalid.
sql/migrate/dir.go:296
↓ 1 callersFunctionparseExtra
parseExtra returns a parsed version of the EXTRA column from the INFORMATION_SCHEMA.COLUMNS table.
sql/mysql/inspect.go:490
↓ 1 callersFunctionparseFmtType
parseFmtType parses the formatted type returned from pg_catalog.format_type and extract the schema and type name.
sql/postgres/inspect.go:1428
↓ 1 callersFunctionparseHCLPaths
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 callersMethodpartAttrs
(b *sqlx.Builder, idx *schema.Index, p *schema.IndexPart)
sql/postgres/migrate.go:1045
↓ 1 callersFunctionpartialParse
(path, env string)
cmd/atlas/internal/cmdapi/project.go:680
↓ 1 callersMethodpartitionChanged
partitionChanged checks and returns an error if the partition key of a table was changed.
sql/postgres/diff.go:165
↓ 1 callersMethodpartitions
partitions builds the partition each table in the schema.
sql/postgres/inspect.go:612
↓ 1 callersMethodpatch
(resource *Resource)
schemahcl/schemahcl.go:484
↓ 1 callersMethodpatchColumn
(_ context.Context, c *schema.Column)
sql/mysql/tidb.go:163
↓ 1 callersMethodpatchRealm
(r *schema.Realm)
sql/internal/sqlx/dev.go:224
↓ 1 callersFunctionpatchRefs
patchRefs recursively searches for schemahcl.Ref under the provided schemahcl.Resource and patches any variables with their concrete names.
schemahcl/schemahcl.go:480
↓ 1 callersFunctionpickTypeAttrs
pickTypeAttrs returns the relevant Attrs matching the wanted TypeAttrs.
schemahcl/types.go:379
↓ 1 callersMethodpkDiff
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 callersFunctionpkName
(t *schema.Table, pk *schema.Index)
sql/postgres/migrate.go:1355
↓ 1 callersMethodplan
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 callersMethodplan
plan builds the migration plan for applying the given changes on the attached connection.
sql/mysql/migrate.go:71
↓ 1 callersMethodplan
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 callersFunctionpopShow
(t *schema.Table)
sql/mysql/inspect.go:977
↓ 1 callersFunctionpromptApply
(cmd *cobra.Command, flags schemaApplyFlags, diff *diff, client, _ *sqlclient.Client)
cmd/atlas/internal/cmdapi/cmdapi.go:1123
↓ 1 callersFunctionquerierAll
()
cmd/atlas/internal/migrate/ent/ent.go:538
↓ 1 callersFunctionreadHashFile
readHashFile reads the HashFile from the given Dir.
sql/migrate/dir.go:922
↓ 1 callersFunctionreaderUseDev
readerUseDev reports if any of the URL uses the dev-database.
cmd/atlas/internal/cmdapi/cmdapi.go:519
↓ 1 callersFunctionremoveObj
removeObj removes the given object from the list of objects.
sql/schema/dsl.go:289
↓ 1 callersMethodrenameTable
(c *schema.RenameTable)
sql/postgres/migrate.go:791
↓ 1 callersMethodrenameTable
(c *schema.RenameTable)
sql/mysql/migrate.go:505
↓ 1 callersMethodrenameTable
(c *schema.RenameTable)
sql/sqlite/migrate.go:228
↓ 1 callersFunctionreplaceOrAppendAttr
(attrs []*Attr, attr *Attr)
schemahcl/spec.go:487
↓ 1 callersMethodreporterFor
(rw sqlcheck.ReportWriter, az sqlcheck.Analyzer)
cmd/atlas/internal/migratelint/lint.go:1069
↓ 1 callersFunctionrequireFileEqual
(t *testing.T, d migrate.Dir, name, contents string)
sql/sqltool/tool_test.go:433
↓ 1 callersFunctionresetFromEnv
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 callersMethodresource
resource converts the hcl file to a schemahcl.Resource.
schemahcl/schemahcl.go:526
↓ 1 callersFunctionrunCmdContext
(ctx context.Context, cmd *cobra.Command, args ...string)
cmd/atlas/internal/cmdapi/cmdapi_test.go:35
↓ 1 callersMethodrunCommandStream
runCommandStream runs the given command streams its output split by new-lines.
atlasexec/atlas.go:317
↓ 1 callersFunctionrunRevisionsTests
(ctx context.Context, t *testing.T, drv migrate.Driver, r RevisionReadWriter)
cmd/atlas/internal/migrate/migrate_test.go:132
↓ 1 callersFunctionsameFK
(fk1, fk2 *schema.ForeignKey)
sql/sqlite/diff.go:208
↓ 1 callersFunctionsameType
(t1, t2 Type, targetComparable bool)
sql/schema/schema.go:651
← previousnext →2,201–2,300 of 7,770, ranked by callers