MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 3 callersFunctioncheckRevisionSchemaClarity
(cmd *cobra.Command, c *sqlclient.Client, revisionSchemaFlag string)
cmd/atlas/internal/cmdapi/migrate.go:1232
↓ 3 callersFunctioncmdApply
(ts *testscript.TestScript, neg bool, args []string, apply func(context.Context, []schema.Change, ...migrate.P
internal/integration/script_test.go:723
↓ 3 callersFunctioncmdCLI
(ts *testscript.TestScript, neg bool, args []string, dbURL, devURL, cliPath string, envs ...string)
internal/integration/script_test.go:419
↓ 3 callersFunctioncmdCmpHCL
(ts *testscript.TestScript, args []string, inspect func(schema string) (string, error), read ...func(string) s
internal/integration/script_test.go:366
↓ 3 callersFunctioncmdCmpMig
cmdCmpMig compares a migration file under migrations with a provided file. If the first argument is a filename that does exist, that file is used for
internal/integration/script_test.go:485
↓ 3 callersFunctioncmdCmpShow
(ts *testscript.TestScript, args []string, show func(schema, name string) (string, error))
internal/integration/script_test.go:299
↓ 3 callersFunctioncmdExec
(ts *testscript.TestScript, args []string, db *sql.DB)
internal/integration/script_test.go:533
↓ 3 callersFunctioncmdExist
(ts *testscript.TestScript, neg bool, args []string, exists func(schema, name string) (bool, error))
internal/integration/script_test.go:577
↓ 3 callersFunctioncmdSynced
(ts *testscript.TestScript, neg bool, args []string, diff func(*testscript.TestScript, string) ([]schema.Chang
internal/integration/script_test.go:709
↓ 3 callersMethodcolumnComment
(src schema.Change, t *schema.Table, c *schema.Column, to, from string)
sql/postgres/migrate.go:837
↓ 3 callersMethodcomment
(left, right string)
sql/migrate/lex.go:439
↓ 3 callersFunctiondecode
(f string)
internal/integration/hclsqlspec/hclsqlspec_test.go:583
↓ 3 callersFunctiondiffOptions
diffOptions returns environment-aware diff options.
cmd/atlas/internal/cmdapi/cmdapi.go:1140
↓ 3 callersFunctionequalsStringValues
equalsStringValues report if the 2 string default values are equal after dropping their quotes.
sql/mysql/diff.go:645
↓ 3 callersMethodexec
(ctx context.Context, files []File)
sql/migrate/migrate.go:1033
↓ 3 callersFunctionfindT
findT finds the table/view referenced by ref in the provided schema. If the table/view is not in the provided schema.Schema other schemas in the conne
sql/internal/specutil/convert.go:927
↓ 3 callersMethodfindTypeSpec
(t string)
schemahcl/schemahcl.go:963
↓ 3 callersFunctionformatPartition
formatPartition returns the string representation of the partition key according to the PostgreSQL format/grammar.
sql/postgres/diff.go:489
↓ 3 callersFunctionhasAttr
(r *Resource, name string)
schemahcl/extension.go:691
↓ 3 callersFunctionhclRawTokens
(s string)
schemahcl/schemahcl.go:1056
↓ 3 callersFunctionhclRefTokens
(v string)
schemahcl/schemahcl.go:1025
↓ 3 callersMethodindexComment
(src schema.Change, t *schema.Table, idx *schema.Index, to, from string)
sql/postgres/migrate.go:848
↓ 3 callersMethodinit
()
cmd/atlas/internal/migrate/ent/client.go:44
↓ 3 callersMethodisName
()
schemahcl/extension.go:628
↓ 3 callersFunctionisRef
isRef checks if the given value is a reference or a list of references. Exists here for backward compatibility, use isOneRef and isRefList instead.
schemahcl/schemahcl.go:724
↓ 3 callersFunctionisSingleResource
(t reflect.Type)
schemahcl/extension.go:665
↓ 3 callersMethodlcmode
(version, mode string)
sql/mysql/inspect_test.go:1071
↓ 3 callersMethodloadRealm
()
internal/integration/postgres_test.go:1624
↓ 3 callersMethodloadRealm
()
internal/integration/cockroach_test.go:809
↓ 3 callersMethodmayAnnotate
(changes []schema.Change, opts *schema.DiffOptions)
sql/internal/sqlx/diff.go:291
↓ 3 callersMethodmayScopeContext
mayScopeContext returns a new limited context for the given scope with access only to variables defined by WithScopedEnums and WithTypes and reference
schemahcl/schemahcl.go:596
↓ 3 callersFunctionmaySuggestUpgrade
maySuggestUpgrade informs the user about the limitations of the community edition to stderr at most once a week. The user can disable this message by
cmd/atlas/internal/cmdapi/cmdapi.go:717
↓ 3 callersFunctionmigrateImportCmd
migrateImportCmd represents the 'atlas migrate import' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:652
↓ 3 callersMethodnoIndexes
()
sql/postgres/inspect_test.go:736
↓ 3 callersFunctionnormalizeIdxName
normalizeIdxName normalizes the index name before generating the CREATE INDEX statement.
sql/sqlite/migrate.go:311
↓ 3 callersFunctionparseColumn
parseColumn returns column parts, size and signed-info from a MySQL type.
sql/mysql/inspect.go:578
↓ 3 callersFunctionplanOptions
planOptions returns the default options for planning declarative changes.
cmd/atlas/internal/cmdapi/schema.go:158
↓ 3 callersFunctionposkey
(typename ...string)
sql/internal/sqlx/dev.go:281
↓ 3 callersMethodpost
(ctx context.Context, query string, vars, data any)
cmd/atlas/internal/cloudapi/client.go:271
↓ 3 callersFunctionprintChecksumError
(cmd *cobra.Command, err error)
cmd/atlas/internal/cmdapi/migrate.go:1464
↓ 3 callersMethodputObject
(o schema.Object, prefix ...string)
sql/internal/sqlx/dev.go:209
↓ 3 callersMethodrealm
()
internal/integration/integration_test.go:125
↓ 3 callersFunctionreason
(line, total, pos int, file string, reason migrate.Reason)
sql/migrate/dir_test.go:672
↓ 3 callersMethodremainedLog
support backward compatibility with the 'log' attribute.
cmd/atlas/internal/cmdapi/project.go:298
↓ 3 callersMethodschemaComment
(src schema.Change, sc *schema.Schema, to, from string)
sql/postgres/migrate.go:817
↓ 3 callersMethodschemaPrefix
schemaPrefix returns the schema prefix based on the planner config.
sql/postgres/migrate.go:1320
↓ 3 callersFunctionsed
(t *testing.T, r, p string)
cmd/atlas/internal/cmdapi/migrate_test.go:1788
↓ 3 callersFunctionsetMigrateEnvFlags
(cmd *cobra.Command, env *Env)
cmd/atlas/internal/cmdapi/migrate.go:1516
↓ 3 callersFunctionsetSchemaEnvFlags
(cmd *cobra.Command, env *Env)
cmd/atlas/internal/cmdapi/schema.go:374
↓ 3 callersFunctionspecFields
specFields uses reflection to find struct fields that are tagged with "spec" and returns a list of mappings from the tag to the field name.
schemahcl/extension.go:582
↓ 3 callersFunctionstateReaderSQL
stateReaderSQL returns a migrate.StateReader from an SQL file or a directory of migrations.
cmd/atlas/internal/cmdext/reader.go:100
↓ 3 callersMethodstmts
(_ context.Context, f migrate.File, _ bool)
cmd/atlas/internal/migratelint/lint.go:1095
↓ 3 callersFunctionstoredOrVirtual
storedOrVirtual returns a STORED or VIRTUAL generated type option based on the given string.
sql/sqlite/sqlspec.go:282
↓ 3 callersMethodtableComment
(src schema.Change, t *schema.Table, to, from string)
sql/postgres/migrate.go:827
↓ 3 callersMethodtables
(schema string, tables ...string)
sql/mysql/inspect_test.go:1102
↓ 3 callersFunctiontimeAlias
timeAlias returns the abbreviation for the given time type.
sql/postgres/convert.go:475
↓ 3 callersMethodtypeIdent
(ns *schema.Schema, name string)
sql/postgres/migrate.go:1306
↓ 3 callersFunctionunsignedTypeAttr
()
schemahcl/types_test.go:224
↓ 3 callersMethodurl
(dbname string)
internal/integration/mysql_test.go:1306
↓ 3 callersMethodurl
(schema string)
internal/integration/postgres_test.go:1581
↓ 3 callersFunctionwithCascade
(changes schema.Changes)
sql/postgres/driver.go:286
↓ 2 callersMethodAddClosers
AddClosers adds list of closers to close at the end of the client lifetime.
sql/sqlclient/client.go:140
↓ 2 callersMethodAddColumns
AddColumns appends the given columns to the table column list.
sql/schema/dsl.go:231
↓ 2 callersMethodAddExprs
AddExprs adds the expressions to index parts.
sql/schema/dsl.go:759
↓ 2 callersMethodAddHeader
AddHeader adds a header to the client requests.
cmd/atlas/internal/cloudapi/client.go:325
↓ 2 callersMethodAddedField
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that t
cmd/atlas/internal/migrate/ent/mutation.go:939
↓ 2 callersMethodAppendedPartialHashes
AppendedPartialHashes returns the list of values that were appended to the "partial_hashes" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:635
↓ 2 callersFunctionArchiveDirTo
ArchiveDirTo writes a tar archive of the given directory to the given writer.
sql/migrate/dir.go:961
↓ 2 callersMethodAssignment
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20885
↓ 2 callersMethodBase_window_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31899
↓ 2 callersMethodBools
Bools returns list of bools from a selector. It is only allowed when selecting one field.
cmd/atlas/internal/migrate/ent/ent.go:449
↓ 2 callersFunctionByID
ByID orders the results by the id field.
cmd/atlas/internal/migrate/ent/revision/revision.go:88
↓ 2 callersFunctionCheckVersion
CheckVersion checks if the given version is valid Atlas version.
sql/migrate/dir.go:535
↓ 2 callersMethodCheckpoint
Checkpoint calculate the current state of the migration directory by executing its files, and return a migration (checkpoint) Plan that represents its
sql/migrate/migrate.go:457
↓ 2 callersMethodCheckpointSchema
CheckpointSchema is like Checkpoint but limits its scope to the schema connection. Note, the operation fails in case the connection was not set to a s
sql/migrate/migrate.go:463
↓ 2 callersMethodCheckpointTag
CheckpointTag returns the tag of the checkpoint file, if defined. The tag can be derived from the file name, internal metadata or directive comments.
sql/migrate/dir.go:94
↓ 2 callersMethodChecks
Checks of the table.
sql/schema/schema.go:231
↓ 2 callersFunctionClickHouse
ClickHouse returns a new Config for a ClickHouse image.
cmd/atlas/internal/docker/docker.go:288
↓ 2 callersMethodClient
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
cmd/atlas/internal/migrate/ent/mutation.go:116
↓ 2 callersMethodColumnChange
ColumnChange returns the schema changes (if any) for migrating one column to the other.
sql/internal/sqlx/diff.go:52
↓ 2 callersFunctionColumnFilled
ColumnFilled checks if the column was filled with values before the given position.
sql/sqlcheck/datadepend/datadepend.go:225
↓ 2 callersMethodCommon_table_expression
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:10832
↓ 2 callersMethodCopyFS
CopyFS copies all files from source FileSystem to the destination directory in the temporary directory. If source is nil, an error is returned.
atlasexec/working_dir.go:145
↓ 2 callersMethodCreateFile
CreateFile creates the file in the temporary directory.
atlasexec/working_dir.go:128
↓ 2 callersMethodCurrent
Current returns the current item from the stream.
atlasexec/atlas.go:311
↓ 2 callersMethodDeleteOneID
DeleteOneID returns a builder for deleting the given entity by its id.
cmd/atlas/internal/migrate/ent/client.go:287
↓ 2 callersMethodDelete_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:11100
↓ 2 callersMethodDirName
DirName returns the directory name for the report.
cmd/atlas/internal/cmdapi/migrate.go:445
↓ 2 callersMethodErrorCleared
ErrorCleared returns if the "error" field was cleared in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:501
↓ 2 callersMethodErrorStmtCleared
ErrorStmtCleared returns if the "error_stmt" field was cleared in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:550
↓ 2 callersMethodEval
Eval evaluates the parsed HCL documents using the input variables and populates v using the result.
schemahcl/schemahcl.go:337
↓ 2 callersMethodEvalOptions
EvalOptions decodes the HCL with the given options.
sql/mysql/sqlspec.go:34
↓ 2 callersMethodExec
Exec executes the deletion query and returns how many vertices were deleted.
cmd/atlas/internal/migrate/ent/revision_delete.go:34
↓ 2 callersFunctionExternalColumnRef
ExternalColumnRef returns the reference of a column by its name and table name.
sql/internal/specutil/convert.go:1001
↓ 2 callersFunctionFilesAsDir
FilesAsDir wraps the given files as MemDir.
cmd/atlas/internal/cmdext/reader.go:380
↓ 2 callersFunctionFilesFromLastCheckpoint
FilesFromLastCheckpoint returns a set of files created after the last checkpoint, if exists, to be executed on a database (on the first time). Note, i
sql/migrate/dir.go:874
↓ 2 callersMethodFirst
First returns the first Revision entity from the query. Returns a *NotFoundError when no Revision was found.
cmd/atlas/internal/migrate/ent/revision_query.go:68
↓ 2 callersMethodFirstID
FirstID returns the first Revision ID from the query. Returns a *NotFoundError when no Revision ID was found.
cmd/atlas/internal/migrate/ent/revision_query.go:90
↓ 2 callersMethodFloat64s
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
cmd/atlas/internal/migrate/ent/ent.go:402
↓ 2 callersMethodForeign_key_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:7687
← previousnext →801–900 of 7,770, ranked by callers