MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 2 callersMethodFormat
Format implements the Formatter interface.
sql/migrate/dir.go:611
↓ 2 callersMethodFrame_spec
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:23358
↓ 2 callersFunctionFromContext
FromContext returns a Client stored inside a context, or nil if there isn't one.
cmd/atlas/internal/cloudapi/client.go:84
↓ 2 callersFunctionFromForeignKey
FromForeignKey converts schema.ForeignKey to sqlspec.ForeignKey.
sql/internal/specutil/convert.go:815
↓ 2 callersFunctionHasOp
HasOp is a condition testing mutation operation.
cmd/atlas/internal/migrate/ent/hook/hook.go:69
↓ 2 callersFunctionID
ID filters vertices based on their ID field.
cmd/atlas/internal/migrate/ent/revision/where.go:18
↓ 2 callersFunctionIDNEQ
IDNEQ applies the NEQ predicate on the ID field.
cmd/atlas/internal/migrate/ent/revision/where.go:28
↓ 2 callersFunctionIf
If executes the given hook under condition. hook.If(ComputeAverage, And(HasFields(...), HasAddedFields(...)))
cmd/atlas/internal/migrate/ent/hook/hook.go:123
↓ 2 callersFunctionImageURL
ImageURL returns the base URL for the given driver and image.
cmd/atlas/internal/docker/docker.go:210
↓ 2 callersMethodIndentIn
IndentIn adds one indentation in.
sql/internal/sqlx/sqlx.go:382
↓ 2 callersMethodIndentOut
IndentOut removed one indentation level.
sql/internal/sqlx/sqlx.go:388
↓ 2 callersMethodIndexAddTable
IndexAddTable returns the index of the first AddTable in the changes with the given name, or -1 if there is no such change in the Changes.
sql/schema/migrate.go:444
↓ 2 callersMethodIndexDropTable
IndexDropTable returns the index of the first DropTable in the changes with the given name, or -1 if there is no such change in the Changes.
sql/schema/migrate.go:453
↓ 2 callersMethodInsert_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:14519
↓ 2 callersMethodInt64
Int64 writes the given value to the builder in base 10.
sql/internal/sqlx/sqlx.go:288
↓ 2 callersMethodIntercept
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`
cmd/atlas/internal/migrate/ent/client.go:195
↓ 2 callersMethodInts
Ints returns list of ints from a selector. It is only allowed when selecting one field.
cmd/atlas/internal/migrate/ent/ent.go:355
↓ 2 callersMethodIs
Is exists for backwards compatability reasons.
sql/migrate/dir.go:771
↓ 2 callersMethodLabel
()
sql/internal/specutil/spec.go:74
↓ 2 callersMethodLiteral_value
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:14118
↓ 2 callersFunctionMariaDB
MariaDB returns a new Config for a MariaDB image.
cmd/atlas/internal/docker/docker.go:247
↓ 2 callersMethodMigrateDiff
MigrateDiff runs the 'migrate diff --dry-run' command and returns the generated migration files without changing the filesystem. Requires atlas CLI to
atlasexec/atlas_migrate.go:497
↓ 2 callersMethodMigrateSet
MigrateSet runs the 'migrate set' command.
atlasexec/atlas_migrate.go:468
↓ 2 callersMethodModule_argument
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:28603
↓ 2 callersMethodMutate
Mutate calls f(ctx, m).
cmd/atlas/internal/migrate/ent/hook/hook.go:21
↓ 2 callersFunctionNewEntRevisions
NewEntRevisions creates a new EntRevisions with the given sqlclient.Client.
cmd/atlas/internal/migrate/migrate.go:95
↓ 2 callersFunctionNewExprPart
NewExprPart creates a new index part with the given expression.
sql/schema/dsl.go:785
↓ 2 callersFunctionNewIndexPart
NewIndexPart creates a new index part.
sql/schema/dsl.go:779
↓ 2 callersFunctionNewSchemaApply
NewSchemaApply returns a SchemaApply.
cmd/atlas/internal/cmdlog/cmdlog.go:1191
↓ 2 callersFunctionNewSchemaDiff
NewSchemaDiff returns a SchemaDiff.
cmd/atlas/internal/cmdlog/cmdlog.go:981
↓ 2 callersMethodOnConflict
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example: client.Revision.Create(). SetD
cmd/atlas/internal/migrate/ent/revision_create.go:328
↓ 2 callersMethodOnly
Only returns a single Revision entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Revision entity
cmd/atlas/internal/migrate/ent/revision_query.go:114
↓ 2 callersMethodOrder
Order specifies how the records should be ordered.
cmd/atlas/internal/migrate/ent/revision_query.go:61
↓ 2 callersFunctionParseType
ParseType returns the schema.Type value represented by the given raw type. It is expected to be one of the types in https://www.sqlite.org/datatypes.h
sql/sqlite/convert.go:57
↓ 2 callersFunctionParserFor
ParserFor returns a ChangesFixer for the given driver.
cmd/atlas/internal/sqlparse/sqlparse.go:51
↓ 2 callersMethodPartialHashesCleared
PartialHashesCleared returns if the "partial_hashes" field was cleared in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:650
↓ 2 callersMethodPath
Path returns a parsed path including block types and their identifiers.
schemahcl/spec.go:299
↓ 2 callersMethodPath
Path returns the path to the file.
cmd/atlas/internal/cmdstate/cmdstate.go:63
↓ 2 callersMethodPragma_value
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:16078
↓ 2 callersMethodPrintType
PrintType returns the string representation of a column type which can be parsed by the driver into a schema.Type.
schemahcl/types.go:21
↓ 2 callersFunctionQualifyReferences
QualifyReferences qualifies any reference with qualifier.
sql/internal/specutil/spec.go:130
↓ 2 callersFunctionRawAttr
RawAttr is a helper method for constructing *schemahcl.Attr instances that contain RawExpr value.
schemahcl/spec.go:589
↓ 2 callersMethodReadRevision
ReadRevision returns a revision by version. Returns ErrRevisionNotExist if the version does not exist.
sql/migrate/migrate.go:230
↓ 2 callersMethodReadRevisions
ReadRevisions reads the revisions from the revisions table. ReadRevisions will not return results only saved to cache.
cmd/atlas/internal/migrate/migrate.go:164
↓ 2 callersMethodRefColumn
RefColumn returns the first referenced column that matches the given name.
sql/schema/schema.go:341
↓ 2 callersFunctionRefName
RefName returns the qualifier and name from a reference.
sql/internal/specutil/convert.go:966
↓ 2 callersMethodReferenceChanged
ReferenceChanged reports if the foreign key referential action was changed. For example, action was changed from RESTRICT to CASCADE.
sql/internal/sqlx/diff.go:70
↓ 2 callersMethodRefs
Refs returns a slice of references.
schemahcl/spec.go:220
↓ 2 callersMethodResources
Resources returns all child Resources by its type.
schemahcl/spec.go:433
↓ 2 callersMethodRun
Run executes migration linting.
cmd/atlas/internal/migratelint/lint.go:455
↓ 2 callersFunctionSQLServer
SQLServer returns a new Config for a SQLServer image.
cmd/atlas/internal/docker/docker.go:268
↓ 2 callersMethodSave
Save executes the query and returns the updated Revision entity.
cmd/atlas/internal/migrate/ent/revision_update.go:531
↓ 2 callersMethodSave
Save creates the Revision entities in the database.
cmd/atlas/internal/migrate/ent/revision_create.go:787
↓ 2 callersMethodScan
(v any)
sql/internal/sqlx/sqlx.go:92
↓ 2 callersMethodScanDoc
()
sql/postgres/sqlspec.go:137
↓ 2 callersFunctionSchemaRef
SchemaRef returns the schemahcl.Ref to the schema with the given name.
sql/internal/specutil/convert.go:1017
↓ 2 callersMethodSchemaRef
()
sql/internal/specutil/spec.go:77
↓ 2 callersMethodSetApplied
SetApplied sets the "applied" field.
cmd/atlas/internal/migrate/ent/revision_update.go:60
↓ 2 callersMethodSetCharset
SetCharset sets or appends the Charset attribute to the column with the given value.
sql/schema/dsl.go:615
↓ 2 callersMethodSetCollation
SetCollation sets or appends the Collation attribute to the column with the given value.
sql/schema/dsl.go:628
↓ 2 callersMethodSetComment
SetComment sets or appends the Comment attribute to the column with the given value.
sql/schema/dsl.go:641
↓ 2 callersMethodSetDescription
SetDescription sets the "description" field.
cmd/atlas/internal/migrate/ent/mutation.go:168
↓ 2 callersMethodSetError
SetError sets the "error" field.
cmd/atlas/internal/migrate/ent/revision_update.go:123
↓ 2 callersMethodSetError
SetError sets the "error" field.
cmd/atlas/internal/migrate/ent/revision_create.go:92
↓ 2 callersMethodSetErrorStmt
SetErrorStmt sets the "error_stmt" field.
cmd/atlas/internal/migrate/ent/revision_update.go:143
↓ 2 callersMethodSetErrorStmt
SetErrorStmt sets the "error_stmt" field.
cmd/atlas/internal/migrate/ent/revision_create.go:106
↓ 2 callersMethodSetExecutedAt
SetExecutedAt sets the "executed_at" field.
cmd/atlas/internal/migrate/ent/mutation.go:372
↓ 2 callersMethodSetExecutionTime
SetExecutionTime sets the "execution_time" field.
cmd/atlas/internal/migrate/ent/revision_update.go:102
↓ 2 callersMethodSetExecutionTime
SetExecutionTime sets the "execution_time" field.
cmd/atlas/internal/migrate/ent/mutation.go:408
↓ 2 callersMethodSetHash
SetHash sets the "hash" field.
cmd/atlas/internal/migrate/ent/revision_update.go:163
↓ 2 callersMethodSetHash
SetHash sets the "hash" field.
cmd/atlas/internal/migrate/ent/mutation.go:562
↓ 2 callersMethodSetOperatorVersion
SetOperatorVersion sets the "operator_version" field.
cmd/atlas/internal/migrate/ent/revision_update.go:195
↓ 2 callersMethodSetOperatorVersion
SetOperatorVersion sets the "operator_version" field.
cmd/atlas/internal/migrate/ent/mutation.go:663
↓ 2 callersMethodSetQualifier
(string)
sql/internal/specutil/spec.go:76
↓ 2 callersMethodSetTotal
SetTotal sets the "total" field.
cmd/atlas/internal/migrate/ent/revision_update.go:81
↓ 2 callersMethodSetType
SetType sets the "type" field.
cmd/atlas/internal/migrate/ent/revision_update.go:39
↓ 2 callersFunctionSingleConn
SingleConn returns a closable single connection from the given ExecQuerier. If the ExecQuerier is already bound to a single connection (e.g. Tx, Conn)
sql/internal/sqlx/sqlx.go:41
↓ 2 callersMethodSql_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:2446
↓ 2 callersMethodStepLogError
StepLogError logs a line to the current reporting step.
cmd/atlas/internal/cmdapi/migrate.go:242
↓ 2 callersMethodStepLogf
StepLogf logs a line to the current reporting step with formatting.
cmd/atlas/internal/cmdapi/migrate.go:237
↓ 2 callersMethodStmtDecls
StmtDecls returns the set of SQL statements this file holds alongside its preceding comments.
sql/migrate/dir.go:55
↓ 2 callersMethodSumByName
SumByName returns the hash for a migration file by its name.
sql/migrate/dir.go:731
↓ 2 callersMethodSupportsCheck
SupportsCheck reports if the version supports the CHECK clause, and return the querying for getting them.
sql/mysql/internal/mysqlversion/mysqlversion.go:25
↓ 2 callersMethodSupportsExprDefault
SupportsExprDefault reports if the version supports expressions in the DEFAULT clause on column definition.
sql/mysql/internal/mysqlversion/mysqlversion.go:49
↓ 2 callersMethodSupportsGeneratedColumns
SupportsGeneratedColumns reports if the version supports the generated columns in information schema.
sql/mysql/internal/mysqlversion/mysqlversion.go:65
↓ 2 callersMethodSyncWrites
SyncWrites allows syncing writes from in-memory directory the underlying storage.
sql/migrate/dir.go:488
↓ 2 callersMethodTableResource
TableResource writes the table resource identifier to the builder, prefixed with the schema name if exists.
sql/internal/sqlx/sqlx.go:342
↓ 2 callersMethodTable_function_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:32241
↓ 2 callersMethodTiDB
TiDB reports if the MySQL version is TiDB.
sql/mysql/internal/mysqlversion/mysqlversion.go:153
↓ 2 callersMethodType_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:5916
↓ 2 callersFunctionUnarchiveDir
UnarchiveDir extracts the tar archive into the given directory.
sql/migrate/dir.go:990
↓ 2 callersFunctionUnarchiveDirFrom
UnarchiveDirFrom extracts the tar archive into the given directory.
sql/migrate/dir.go:995
↓ 2 callersMethodUnderlying
Underlying returns the underlying type of the array.
sql/postgres/inspect.go:1197
↓ 2 callersFunctionUnderlyingExpr
UnderlyingExpr returns the underlying expression of x.
sql/schema/schema.go:628
↓ 2 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler.
sql/migrate/dir.go:712
↓ 2 callersMethodUnsetCharset
UnsetCharset unsets the Charset attribute.
sql/schema/dsl.go:122
↓ 2 callersMethodUnsetCollation
UnsetCollation the Collation attribute.
sql/schema/dsl.go:135
↓ 2 callersMethodUpdate_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20382
↓ 2 callersFunctionUseTraversal
UseTraversal determines if the given attribute use the given traversal.
schemahcl/schemahcl.go:1232
↓ 2 callersFunctionValidColumn
ValidColumn reports if the column name is valid (part of the table columns).
cmd/atlas/internal/migrate/ent/revision/revision.go:62
← previousnext →901–1,000 of 7,770, ranked by callers