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
↓ 4 callers
Function
checks
checks extracts all constraints from table attributes.
sql/internal/sqlx/diff.go:733
↓ 4 callers
Method
column
(b *sqlx.Builder, c *schema.Column)
sql/postgres/migrate.go:964
↓ 4 callers
Method
column
(b *sqlx.Builder, t *schema.Table, c *schema.Column)
sql/mysql/migrate.go:514
↓ 4 callers
Function
columns
columns from the matched regex above.
sql/sqlite/inspect.go:573
↓ 4 callers
Function
commentChange
commentChange extracts the information for modifying a comment from the given change.
sql/postgres/migrate.go:1240
↓ 4 callers
Function
convertCharset
convertCharset converts spec charset/collation attributes to schema element attributes.
sql/mysql/sqlspec.go:440
↓ 4 callers
Function
convertCommentFromSchema
convertCommentFromSchema converts a schema element comment attribute to a spec comment attribute.
sql/internal/specutil/convert.go:1041
↓ 4 callers
Function
devDriver
(t *testing.T, version string)
sql/mysql/mysqlcheck/mysqlcheck_test.go:242
↓ 4 callers
Function
enableFK
(ctx context.Context, db schema.ExecQuerier, do bool, err error)
sql/sqlite/driver.go:322
↓ 4 callers
Function
filter
(s []T, f func(T) (bool, error))
sql/schema/exclude.go:250
↓ 4 callers
Method
findT
findT searches the registry for types that have the provided T.
schemahcl/types.go:164
↓ 4 callers
Function
formatTime
formatTime overrides the default printing logic done by schemahcl.hclType.
sql/postgres/sqlspec.go:1052
↓ 4 callers
Function
indexStorageParams
indexStorageParams returns the index storage parameters from the attributes in case it is there, and it is not the default.
sql/postgres/diff.go:516
↓ 4 callers
Function
indexType
indexType returns the index type from its attribute. The default type is BTREE if no type was specified.
sql/mysql/diff.go:470
↓ 4 callers
Function
indexTypeParts
(b *sqlx.Builder, idx *schema.Index)
sql/mysql/migrate.go:600
↓ 4 callers
Method
init
init initializes the scanner state.
sql/migrate/lex.go:152
↓ 4 callers
Method
inspect
inspect the realm and filter by schema if we are connected to one.
cmd/atlas/internal/migratelint/lint.go:386
↓ 4 callers
Method
is
(t string)
schemahcl/extension.go:636
↓ 4 callers
Function
isHex
(x string)
sql/mysql/inspect.go:615
↓ 4 callers
Method
loadRealm
()
internal/integration/mysql_test.go:1476
↓ 4 callers
Method
loadTable
(string)
internal/integration/integration_test.go:131
↓ 4 callers
Method
mayQualify
(s *schema.Schema, top string, children ...string)
sql/internal/sqlx/sqlx.go:359
↓ 4 callers
Function
mergeWriters
(writers ...io.Writer)
atlasexec/atlas.go:421
↓ 4 callers
Function
newMigrate
(version string)
sql/mysql/migrate_test.go:1400
↓ 4 callers
Function
newT
newT ensures the type is initialized.
cmd/atlas/internal/cmdstate/cmdstate.go:79
↓ 4 callers
Method
noChecks
()
sql/postgres/inspect_test.go:746
↓ 4 callers
Method
noEnums
()
sql/postgres/inspect_test.go:751
↓ 4 callers
Method
noFKs
()
sql/postgres/inspect_test.go:741
↓ 4 callers
Function
plan
(t T, name string, changes ...schema.Change)
internal/integration/integration_test.go:720
↓ 4 callers
Method
prepareQuery
(ctx context.Context)
cmd/atlas/internal/migrate/ent/revision_query.go:312
↓ 4 callers
Method
querySchema
(ctx context.Context, query string, s *schema.Schema)
sql/mysql/inspect.go:651
↓ 4 callers
Method
revisionsStorage
()
internal/integration/integration_test.go:124
↓ 4 callers
Method
schemaSpan
(s *schema.Schema)
sql/sqlcheck/sqlcheck.go:272
↓ 4 callers
Function
skipDefaultComment
(s *schema.Schema, public string)
sql/postgres/diff.go:58
↓ 4 callers
Method
skipSpaces
()
sql/migrate/lex.go:463
↓ 4 callers
Method
stmt
()
sql/migrate/lex.go:187
↓ 4 callers
Method
tableAttrs
tableAttrs writes the given table attributes to the SQL statement builder when a table is created or altered.
sql/mysql/migrate.go:661
↓ 4 callers
Function
testCLIMultiSchemaApply
(t T, h string, url string, schemas []string, eval schemahcl.Evaluator)
internal/integration/integration_test.go:397
↓ 4 callers
Function
testCLIMultiSchemaInspect
(t T, h string, url string, schemas []string, eval schemahcl.Evaluator)
internal/integration/integration_test.go:426
↓ 4 callers
Function
testCLISchemaApplyAutoApprove
(t T, h string, url string, args ...string)
internal/integration/integration_test.go:511
↓ 4 callers
Function
testExecutor
(t T)
internal/integration/integration_test.go:668
↓ 4 callers
Method
underlyingType
underlyingType returns the underlying type of the given user-defined type by searching the realm.
sql/postgres/inspect.go:337
↓ 4 callers
Function
unescape
unescape strings with backslashes returned for SQL expressions from information schema.
sql/mysql/driver.go:313
↓ 4 callers
Function
unexpectedPragmaErr
(f migrate.File, line int, pragma string)
sql/sqltool/tool.go:576
↓ 4 callers
Function
withHooks
withHooks invokes the builder operation with the given hooks, if any.
cmd/atlas/internal/migrate/ent/ent.go:496
↓ 4 callers
Method
writeRevision
(ctx context.Context, r *Revision)
sql/migrate/migrate.go:897
↓ 3 callers
Method
AddedApplied
AddedApplied returns the value that was added to the "applied" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:301
↓ 3 callers
Method
AddedExecutionTime
AddedExecutionTime returns the value that was added to the "execution_time" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:449
↓ 3 callers
Method
AddedTotal
AddedTotal returns the value that was added to the "total" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:357
↓ 3 callers
Method
AddedType
AddedType returns the value that was added to the "type" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:245
↓ 3 callers
Method
AtlasRevision
AtlasRevision returns an migrate.Revision from the current Revision.
cmd/atlas/internal/migrate/ent/convert.go:29
↓ 3 callers
Method
Attr
Attr returns the Attr by the provided name and reports whether it was found.
schemahcl/spec.go:447
↓ 3 callers
Method
BeginTx
BeginTx returns a transactional client with specified options.
cmd/atlas/internal/migrate/ent/client.go:146
↓ 3 callers
Method
Bool
Bool returns a single bool from a selector. It is only allowed when selecting one field.
cmd/atlas/internal/migrate/ent/ent.go:470
↓ 3 callers
Method
Bytes
Bytes returns local file data.
sql/migrate/dir.go:248
↓ 3 callers
Function
Charset
Charset reports if the attribute contains the "charset" attribute, and it needs to be defined explicitly on the schema. This is true, in case the elem
sql/internal/sqlx/diff.go:546
↓ 3 callers
Function
CheckDiffMode
CheckDiffMode is like CheckDiff, but compares also expressions if the schema.DiffMode is equal to schema.DiffModeNormalized.
sql/internal/sqlx/diff.go:651
↓ 3 callers
Method
CheckpointTag
CheckpointTag returns the tag of the checkpoint file, if defined.
sql/migrate/migrate.go:1296
↓ 3 callers
Method
Close
Close is a nop close.
cmd/atlas/internal/migrate/ent/tx.go:196
↓ 3 callers
Method
Close
Close closes the connection.
sdk/recordriver/driver.go:101
↓ 3 callers
Method
CloudEnabled
CloudEnabled reports if cloud reporting is enabled.
cmd/atlas/internal/cmdapi/migrate.go:461
↓ 3 callers
Function
Collate
Collate reports if the attribute contains the "collation"/"collate" attribute, and it needs to be defined explicitly on the schema. This is true, in c
sql/internal/sqlx/diff.go:557
↓ 3 callers
Method
CollateToCharset
CollateToCharset returns the mapping from a collation to its charset.
sql/mysql/internal/mysqlversion/mysqlversion.go:114
↓ 3 callers
Function
Column
Column converts a sqlspec.Column into a schema.Column.
sql/internal/specutil/convert.go:230
↓ 3 callers
Method
ColumnSpan
ColumnSpan returns the span information for the column.
sql/sqlcheck/sqlcheck.go:197
↓ 3 callers
Function
CommentChange
CommentChange reports if the element comment was changed.
sql/internal/sqlx/diff.go:535
↓ 3 callers
Method
Common_table_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:24732
↓ 3 callers
Method
Conflict_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:8082
↓ 3 callers
Method
Conn
(ctx context.Context)
sql/mysql/driver_test.go:238
↓ 3 callers
Function
ConvertGenExpr
ConvertGenExpr converts the "as" attribute or the block under the given resource.
sql/internal/specutil/convert.go:680
↓ 3 callers
Method
Copilot
Copilot executes a one-shot Copilot session with the provided options.
atlasexec/copilot.go:57
↓ 3 callers
Function
Create
Create creates all table resources using the given schema driver.
cmd/atlas/internal/migrate/ent/migrate/migrate.go:53
↓ 3 callers
Method
Cte_table_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:10330
↓ 3 callers
Function
Default
Default converts a cty.Value (as defined in the spec) into a schema.Expr.
sql/internal/specutil/convert.go:284
↓ 3 callers
Method
DependencyOf
(change, other schema.Change)
sql/internal/sqlx/plan.go:452
↓ 3 callers
Method
DependsOn
(change, other schema.Change)
sql/internal/sqlx/plan.go:451
↓ 3 callers
Method
DetectChanges
DetectChanges implements the ChangeDetector interface.
cmd/atlas/internal/migratelint/lint.go:108
↓ 3 callers
Method
Dialect
Dialect returns the dialect of the driver we started the transaction from.
cmd/atlas/internal/migrate/ent/tx.go:193
↓ 3 callers
Method
Extend
Extend allows extending environment blocks with a global one. For example: lint { log = <<EOS ... EOS } env "local" { ... lint {
cmd/atlas/internal/cmdapi/project.go:331
↓ 3 callers
Method
FailNow
()
cmd/atlas/internal/migrate/ent/enttest/enttest.go:24
↓ 3 callers
Method
Fields
Fields of the Revision.
cmd/atlas/internal/migrate/ent/schema/revision.go:27
↓ 3 callers
Method
Filter_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:22311
↓ 3 callers
Method
FinalName
FinalName returns the final name for the resource by examining the struct tags for the extension of the Resource's type. If no such extension is regis
schemahcl/extension.go:246
↓ 3 callers
Method
Float64
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
cmd/atlas/internal/migrate/ent/ent.go:423
↓ 3 callers
Method
FormatFile
FormatFile is like Format, but expects and returns a single file.
sql/migrate/dir.go:630
↓ 3 callers
Function
FormatType
FormatType converts types to one format. A lowered format. This is due to SQLite flexibility to allow any data types and use a set of rules to define
sql/sqlite/convert.go:19
↓ 3 callers
Function
Formatter
Formatter returns the dir formatter for its URL.
cmd/atlas/internal/migrate/migrate.go:350
↓ 3 callers
Method
Frame_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:23606
↓ 3 callers
Function
FromColumn
FromColumn converts a *schema.Column into a *sqlspec.Column using the ColumnTypeSpecFunc.
sql/internal/specutil/convert.go:632
↓ 3 callers
Function
FromGenExpr
FromGenExpr returns the spec for a generated expression.
sql/internal/specutil/convert.go:669
↓ 3 callers
Function
FromIndex
FromIndex converts schema.Index to sqlspec.Index.
sql/internal/specutil/convert.go:768
↓ 3 callers
Function
FromTable
FromTable converts a schema.Table to a sqlspec.Table.
sql/internal/specutil/convert.go:484
↓ 3 callers
Method
IDs
IDs executes the query and returns a list of Revision IDs.
cmd/atlas/internal/migrate/ent/revision_query.go:186
↓ 3 callers
Function
Index
Index converts a sqlspec.Index to a schema.Index. The optional arguments allow passing functions for mutating the created index-part (e.g. add attribu
sql/internal/specutil/convert.go:316
↓ 3 callers
Method
IndexAddIndex
IndexAddIndex returns the index of the first AddIndex in the changes with the given name, or -1 if there is no such change in the Changes.
sql/schema/migrate.go:507
↓ 3 callers
Method
IndexDropIndex
IndexDropIndex returns the index of the first DropIndex in the changes with the given name, or -1 if there is no such change in the Changes.
sql/schema/migrate.go:516
↓ 3 callers
Method
Int
Int returns a single int from a selector. It is only allowed when selecting one field.
cmd/atlas/internal/migrate/ent/ent.go:376
↓ 3 callers
Method
Int64
Int64 returns an int64 from the Value of the Attr. If The value is not a LiteralValue or the value cannot be converted to an integer an error is retur
schemahcl/spec.go:167
↓ 3 callers
Method
IntegerType
IntegerType returns the underlying integer type this serial type represents.
sql/postgres/inspect.go:1259
↓ 3 callers
Method
IsCheckpoint
IsCheckpoint reports whether the file is a checkpoint file.
sql/migrate/migrate.go:1291
← previous
next →
601–700 of 7,770, ranked by callers