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
Method
Format
Format implements the Formatter interface.
sql/migrate/dir.go:611
↓ 2 callers
Method
Frame_spec
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:23358
↓ 2 callers
Function
FromContext
FromContext returns a Client stored inside a context, or nil if there isn't one.
cmd/atlas/internal/cloudapi/client.go:84
↓ 2 callers
Function
FromForeignKey
FromForeignKey converts schema.ForeignKey to sqlspec.ForeignKey.
sql/internal/specutil/convert.go:815
↓ 2 callers
Function
HasOp
HasOp is a condition testing mutation operation.
cmd/atlas/internal/migrate/ent/hook/hook.go:69
↓ 2 callers
Function
ID
ID filters vertices based on their ID field.
cmd/atlas/internal/migrate/ent/revision/where.go:18
↓ 2 callers
Function
IDNEQ
IDNEQ applies the NEQ predicate on the ID field.
cmd/atlas/internal/migrate/ent/revision/where.go:28
↓ 2 callers
Function
If
If executes the given hook under condition. hook.If(ComputeAverage, And(HasFields(...), HasAddedFields(...)))
cmd/atlas/internal/migrate/ent/hook/hook.go:123
↓ 2 callers
Function
ImageURL
ImageURL returns the base URL for the given driver and image.
cmd/atlas/internal/docker/docker.go:210
↓ 2 callers
Method
IndentIn
IndentIn adds one indentation in.
sql/internal/sqlx/sqlx.go:382
↓ 2 callers
Method
IndentOut
IndentOut removed one indentation level.
sql/internal/sqlx/sqlx.go:388
↓ 2 callers
Method
IndexAddTable
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 callers
Method
IndexDropTable
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 callers
Method
Insert_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:14519
↓ 2 callers
Method
Int64
Int64 writes the given value to the builder in base 10.
sql/internal/sqlx/sqlx.go:288
↓ 2 callers
Method
Intercept
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 callers
Method
Ints
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 callers
Method
Is
Is exists for backwards compatability reasons.
sql/migrate/dir.go:771
↓ 2 callers
Method
Label
()
sql/internal/specutil/spec.go:74
↓ 2 callers
Method
Literal_value
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:14118
↓ 2 callers
Function
MariaDB
MariaDB returns a new Config for a MariaDB image.
cmd/atlas/internal/docker/docker.go:247
↓ 2 callers
Method
MigrateDiff
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 callers
Method
MigrateSet
MigrateSet runs the 'migrate set' command.
atlasexec/atlas_migrate.go:468
↓ 2 callers
Method
Module_argument
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:28603
↓ 2 callers
Method
Mutate
Mutate calls f(ctx, m).
cmd/atlas/internal/migrate/ent/hook/hook.go:21
↓ 2 callers
Function
NewEntRevisions
NewEntRevisions creates a new EntRevisions with the given sqlclient.Client.
cmd/atlas/internal/migrate/migrate.go:95
↓ 2 callers
Function
NewExprPart
NewExprPart creates a new index part with the given expression.
sql/schema/dsl.go:785
↓ 2 callers
Function
NewIndexPart
NewIndexPart creates a new index part.
sql/schema/dsl.go:779
↓ 2 callers
Function
NewSchemaApply
NewSchemaApply returns a SchemaApply.
cmd/atlas/internal/cmdlog/cmdlog.go:1191
↓ 2 callers
Function
NewSchemaDiff
NewSchemaDiff returns a SchemaDiff.
cmd/atlas/internal/cmdlog/cmdlog.go:981
↓ 2 callers
Method
OnConflict
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 callers
Method
Only
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 callers
Method
Order
Order specifies how the records should be ordered.
cmd/atlas/internal/migrate/ent/revision_query.go:61
↓ 2 callers
Function
ParseType
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 callers
Function
ParserFor
ParserFor returns a ChangesFixer for the given driver.
cmd/atlas/internal/sqlparse/sqlparse.go:51
↓ 2 callers
Method
PartialHashesCleared
PartialHashesCleared returns if the "partial_hashes" field was cleared in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:650
↓ 2 callers
Method
Path
Path returns a parsed path including block types and their identifiers.
schemahcl/spec.go:299
↓ 2 callers
Method
Path
Path returns the path to the file.
cmd/atlas/internal/cmdstate/cmdstate.go:63
↓ 2 callers
Method
Pragma_value
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:16078
↓ 2 callers
Method
PrintType
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 callers
Function
QualifyReferences
QualifyReferences qualifies any reference with qualifier.
sql/internal/specutil/spec.go:130
↓ 2 callers
Function
RawAttr
RawAttr is a helper method for constructing *schemahcl.Attr instances that contain RawExpr value.
schemahcl/spec.go:589
↓ 2 callers
Method
ReadRevision
ReadRevision returns a revision by version. Returns ErrRevisionNotExist if the version does not exist.
sql/migrate/migrate.go:230
↓ 2 callers
Method
ReadRevisions
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 callers
Method
RefColumn
RefColumn returns the first referenced column that matches the given name.
sql/schema/schema.go:341
↓ 2 callers
Function
RefName
RefName returns the qualifier and name from a reference.
sql/internal/specutil/convert.go:966
↓ 2 callers
Method
ReferenceChanged
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 callers
Method
Refs
Refs returns a slice of references.
schemahcl/spec.go:220
↓ 2 callers
Method
Resources
Resources returns all child Resources by its type.
schemahcl/spec.go:433
↓ 2 callers
Method
Run
Run executes migration linting.
cmd/atlas/internal/migratelint/lint.go:455
↓ 2 callers
Function
SQLServer
SQLServer returns a new Config for a SQLServer image.
cmd/atlas/internal/docker/docker.go:268
↓ 2 callers
Method
Save
Save executes the query and returns the updated Revision entity.
cmd/atlas/internal/migrate/ent/revision_update.go:531
↓ 2 callers
Method
Save
Save creates the Revision entities in the database.
cmd/atlas/internal/migrate/ent/revision_create.go:787
↓ 2 callers
Method
Scan
(v any)
sql/internal/sqlx/sqlx.go:92
↓ 2 callers
Method
ScanDoc
()
sql/postgres/sqlspec.go:137
↓ 2 callers
Function
SchemaRef
SchemaRef returns the schemahcl.Ref to the schema with the given name.
sql/internal/specutil/convert.go:1017
↓ 2 callers
Method
SchemaRef
()
sql/internal/specutil/spec.go:77
↓ 2 callers
Method
SetApplied
SetApplied sets the "applied" field.
cmd/atlas/internal/migrate/ent/revision_update.go:60
↓ 2 callers
Method
SetCharset
SetCharset sets or appends the Charset attribute to the column with the given value.
sql/schema/dsl.go:615
↓ 2 callers
Method
SetCollation
SetCollation sets or appends the Collation attribute to the column with the given value.
sql/schema/dsl.go:628
↓ 2 callers
Method
SetComment
SetComment sets or appends the Comment attribute to the column with the given value.
sql/schema/dsl.go:641
↓ 2 callers
Method
SetDescription
SetDescription sets the "description" field.
cmd/atlas/internal/migrate/ent/mutation.go:168
↓ 2 callers
Method
SetError
SetError sets the "error" field.
cmd/atlas/internal/migrate/ent/revision_update.go:123
↓ 2 callers
Method
SetError
SetError sets the "error" field.
cmd/atlas/internal/migrate/ent/revision_create.go:92
↓ 2 callers
Method
SetErrorStmt
SetErrorStmt sets the "error_stmt" field.
cmd/atlas/internal/migrate/ent/revision_update.go:143
↓ 2 callers
Method
SetErrorStmt
SetErrorStmt sets the "error_stmt" field.
cmd/atlas/internal/migrate/ent/revision_create.go:106
↓ 2 callers
Method
SetExecutedAt
SetExecutedAt sets the "executed_at" field.
cmd/atlas/internal/migrate/ent/mutation.go:372
↓ 2 callers
Method
SetExecutionTime
SetExecutionTime sets the "execution_time" field.
cmd/atlas/internal/migrate/ent/revision_update.go:102
↓ 2 callers
Method
SetExecutionTime
SetExecutionTime sets the "execution_time" field.
cmd/atlas/internal/migrate/ent/mutation.go:408
↓ 2 callers
Method
SetHash
SetHash sets the "hash" field.
cmd/atlas/internal/migrate/ent/revision_update.go:163
↓ 2 callers
Method
SetHash
SetHash sets the "hash" field.
cmd/atlas/internal/migrate/ent/mutation.go:562
↓ 2 callers
Method
SetOperatorVersion
SetOperatorVersion sets the "operator_version" field.
cmd/atlas/internal/migrate/ent/revision_update.go:195
↓ 2 callers
Method
SetOperatorVersion
SetOperatorVersion sets the "operator_version" field.
cmd/atlas/internal/migrate/ent/mutation.go:663
↓ 2 callers
Method
SetQualifier
(string)
sql/internal/specutil/spec.go:76
↓ 2 callers
Method
SetTotal
SetTotal sets the "total" field.
cmd/atlas/internal/migrate/ent/revision_update.go:81
↓ 2 callers
Method
SetType
SetType sets the "type" field.
cmd/atlas/internal/migrate/ent/revision_update.go:39
↓ 2 callers
Function
SingleConn
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 callers
Method
Sql_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:2446
↓ 2 callers
Method
StepLogError
StepLogError logs a line to the current reporting step.
cmd/atlas/internal/cmdapi/migrate.go:242
↓ 2 callers
Method
StepLogf
StepLogf logs a line to the current reporting step with formatting.
cmd/atlas/internal/cmdapi/migrate.go:237
↓ 2 callers
Method
StmtDecls
StmtDecls returns the set of SQL statements this file holds alongside its preceding comments.
sql/migrate/dir.go:55
↓ 2 callers
Method
SumByName
SumByName returns the hash for a migration file by its name.
sql/migrate/dir.go:731
↓ 2 callers
Method
SupportsCheck
SupportsCheck reports if the version supports the CHECK clause, and return the querying for getting them.
sql/mysql/internal/mysqlversion/mysqlversion.go:25
↓ 2 callers
Method
SupportsExprDefault
SupportsExprDefault reports if the version supports expressions in the DEFAULT clause on column definition.
sql/mysql/internal/mysqlversion/mysqlversion.go:49
↓ 2 callers
Method
SupportsGeneratedColumns
SupportsGeneratedColumns reports if the version supports the generated columns in information schema.
sql/mysql/internal/mysqlversion/mysqlversion.go:65
↓ 2 callers
Method
SyncWrites
SyncWrites allows syncing writes from in-memory directory the underlying storage.
sql/migrate/dir.go:488
↓ 2 callers
Method
TableResource
TableResource writes the table resource identifier to the builder, prefixed with the schema name if exists.
sql/internal/sqlx/sqlx.go:342
↓ 2 callers
Method
Table_function_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:32241
↓ 2 callers
Method
TiDB
TiDB reports if the MySQL version is TiDB.
sql/mysql/internal/mysqlversion/mysqlversion.go:153
↓ 2 callers
Method
Type_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:5916
↓ 2 callers
Function
UnarchiveDir
UnarchiveDir extracts the tar archive into the given directory.
sql/migrate/dir.go:990
↓ 2 callers
Function
UnarchiveDirFrom
UnarchiveDirFrom extracts the tar archive into the given directory.
sql/migrate/dir.go:995
↓ 2 callers
Method
Underlying
Underlying returns the underlying type of the array.
sql/postgres/inspect.go:1197
↓ 2 callers
Function
UnderlyingExpr
UnderlyingExpr returns the underlying expression of x.
sql/schema/schema.go:628
↓ 2 callers
Method
UnmarshalText
UnmarshalText implements encoding.TextUnmarshaler.
sql/migrate/dir.go:712
↓ 2 callers
Method
UnsetCharset
UnsetCharset unsets the Charset attribute.
sql/schema/dsl.go:122
↓ 2 callers
Method
UnsetCollation
UnsetCollation the Collation attribute.
sql/schema/dsl.go:135
↓ 2 callers
Method
Update_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20382
↓ 2 callers
Function
UseTraversal
UseTraversal determines if the given attribute use the given traversal.
schemahcl/schemahcl.go:1232
↓ 2 callers
Function
ValidColumn
ValidColumn reports if the column name is valid (part of the table columns).
cmd/atlas/internal/migrate/ent/revision/revision.go:62
← previous
next →
901–1,000 of 7,770, ranked by callers