MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 4 callersFunctionchecks
checks extracts all constraints from table attributes.
sql/internal/sqlx/diff.go:733
↓ 4 callersMethodcolumn
(b *sqlx.Builder, c *schema.Column)
sql/postgres/migrate.go:964
↓ 4 callersMethodcolumn
(b *sqlx.Builder, t *schema.Table, c *schema.Column)
sql/mysql/migrate.go:514
↓ 4 callersFunctioncolumns
columns from the matched regex above.
sql/sqlite/inspect.go:573
↓ 4 callersFunctioncommentChange
commentChange extracts the information for modifying a comment from the given change.
sql/postgres/migrate.go:1240
↓ 4 callersFunctionconvertCharset
convertCharset converts spec charset/collation attributes to schema element attributes.
sql/mysql/sqlspec.go:440
↓ 4 callersFunctionconvertCommentFromSchema
convertCommentFromSchema converts a schema element comment attribute to a spec comment attribute.
sql/internal/specutil/convert.go:1041
↓ 4 callersFunctiondevDriver
(t *testing.T, version string)
sql/mysql/mysqlcheck/mysqlcheck_test.go:242
↓ 4 callersFunctionenableFK
(ctx context.Context, db schema.ExecQuerier, do bool, err error)
sql/sqlite/driver.go:322
↓ 4 callersFunctionfilter
(s []T, f func(T) (bool, error))
sql/schema/exclude.go:250
↓ 4 callersMethodfindT
findT searches the registry for types that have the provided T.
schemahcl/types.go:164
↓ 4 callersFunctionformatTime
formatTime overrides the default printing logic done by schemahcl.hclType.
sql/postgres/sqlspec.go:1052
↓ 4 callersFunctionindexStorageParams
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 callersFunctionindexType
indexType returns the index type from its attribute. The default type is BTREE if no type was specified.
sql/mysql/diff.go:470
↓ 4 callersFunctionindexTypeParts
(b *sqlx.Builder, idx *schema.Index)
sql/mysql/migrate.go:600
↓ 4 callersMethodinit
init initializes the scanner state.
sql/migrate/lex.go:152
↓ 4 callersMethodinspect
inspect the realm and filter by schema if we are connected to one.
cmd/atlas/internal/migratelint/lint.go:386
↓ 4 callersMethodis
(t string)
schemahcl/extension.go:636
↓ 4 callersFunctionisHex
(x string)
sql/mysql/inspect.go:615
↓ 4 callersMethodloadRealm
()
internal/integration/mysql_test.go:1476
↓ 4 callersMethodloadTable
(string)
internal/integration/integration_test.go:131
↓ 4 callersMethodmayQualify
(s *schema.Schema, top string, children ...string)
sql/internal/sqlx/sqlx.go:359
↓ 4 callersFunctionmergeWriters
(writers ...io.Writer)
atlasexec/atlas.go:421
↓ 4 callersFunctionnewMigrate
(version string)
sql/mysql/migrate_test.go:1400
↓ 4 callersFunctionnewT
newT ensures the type is initialized.
cmd/atlas/internal/cmdstate/cmdstate.go:79
↓ 4 callersMethodnoChecks
()
sql/postgres/inspect_test.go:746
↓ 4 callersMethodnoEnums
()
sql/postgres/inspect_test.go:751
↓ 4 callersMethodnoFKs
()
sql/postgres/inspect_test.go:741
↓ 4 callersFunctionplan
(t T, name string, changes ...schema.Change)
internal/integration/integration_test.go:720
↓ 4 callersMethodprepareQuery
(ctx context.Context)
cmd/atlas/internal/migrate/ent/revision_query.go:312
↓ 4 callersMethodquerySchema
(ctx context.Context, query string, s *schema.Schema)
sql/mysql/inspect.go:651
↓ 4 callersMethodrevisionsStorage
()
internal/integration/integration_test.go:124
↓ 4 callersMethodschemaSpan
(s *schema.Schema)
sql/sqlcheck/sqlcheck.go:272
↓ 4 callersFunctionskipDefaultComment
(s *schema.Schema, public string)
sql/postgres/diff.go:58
↓ 4 callersMethodskipSpaces
()
sql/migrate/lex.go:463
↓ 4 callersMethodstmt
()
sql/migrate/lex.go:187
↓ 4 callersMethodtableAttrs
tableAttrs writes the given table attributes to the SQL statement builder when a table is created or altered.
sql/mysql/migrate.go:661
↓ 4 callersFunctiontestCLIMultiSchemaApply
(t T, h string, url string, schemas []string, eval schemahcl.Evaluator)
internal/integration/integration_test.go:397
↓ 4 callersFunctiontestCLIMultiSchemaInspect
(t T, h string, url string, schemas []string, eval schemahcl.Evaluator)
internal/integration/integration_test.go:426
↓ 4 callersFunctiontestCLISchemaApplyAutoApprove
(t T, h string, url string, args ...string)
internal/integration/integration_test.go:511
↓ 4 callersFunctiontestExecutor
(t T)
internal/integration/integration_test.go:668
↓ 4 callersMethodunderlyingType
underlyingType returns the underlying type of the given user-defined type by searching the realm.
sql/postgres/inspect.go:337
↓ 4 callersFunctionunescape
unescape strings with backslashes returned for SQL expressions from information schema.
sql/mysql/driver.go:313
↓ 4 callersFunctionunexpectedPragmaErr
(f migrate.File, line int, pragma string)
sql/sqltool/tool.go:576
↓ 4 callersFunctionwithHooks
withHooks invokes the builder operation with the given hooks, if any.
cmd/atlas/internal/migrate/ent/ent.go:496
↓ 4 callersMethodwriteRevision
(ctx context.Context, r *Revision)
sql/migrate/migrate.go:897
↓ 3 callersMethodAddedApplied
AddedApplied returns the value that was added to the "applied" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:301
↓ 3 callersMethodAddedExecutionTime
AddedExecutionTime returns the value that was added to the "execution_time" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:449
↓ 3 callersMethodAddedTotal
AddedTotal returns the value that was added to the "total" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:357
↓ 3 callersMethodAddedType
AddedType returns the value that was added to the "type" field in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:245
↓ 3 callersMethodAtlasRevision
AtlasRevision returns an migrate.Revision from the current Revision.
cmd/atlas/internal/migrate/ent/convert.go:29
↓ 3 callersMethodAttr
Attr returns the Attr by the provided name and reports whether it was found.
schemahcl/spec.go:447
↓ 3 callersMethodBeginTx
BeginTx returns a transactional client with specified options.
cmd/atlas/internal/migrate/ent/client.go:146
↓ 3 callersMethodBool
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 callersMethodBytes
Bytes returns local file data.
sql/migrate/dir.go:248
↓ 3 callersFunctionCharset
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 callersFunctionCheckDiffMode
CheckDiffMode is like CheckDiff, but compares also expressions if the schema.DiffMode is equal to schema.DiffModeNormalized.
sql/internal/sqlx/diff.go:651
↓ 3 callersMethodCheckpointTag
CheckpointTag returns the tag of the checkpoint file, if defined.
sql/migrate/migrate.go:1296
↓ 3 callersMethodClose
Close is a nop close.
cmd/atlas/internal/migrate/ent/tx.go:196
↓ 3 callersMethodClose
Close closes the connection.
sdk/recordriver/driver.go:101
↓ 3 callersMethodCloudEnabled
CloudEnabled reports if cloud reporting is enabled.
cmd/atlas/internal/cmdapi/migrate.go:461
↓ 3 callersFunctionCollate
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 callersMethodCollateToCharset
CollateToCharset returns the mapping from a collation to its charset.
sql/mysql/internal/mysqlversion/mysqlversion.go:114
↓ 3 callersFunctionColumn
Column converts a sqlspec.Column into a schema.Column.
sql/internal/specutil/convert.go:230
↓ 3 callersMethodColumnSpan
ColumnSpan returns the span information for the column.
sql/sqlcheck/sqlcheck.go:197
↓ 3 callersFunctionCommentChange
CommentChange reports if the element comment was changed.
sql/internal/sqlx/diff.go:535
↓ 3 callersMethodCommon_table_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:24732
↓ 3 callersMethodConflict_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:8082
↓ 3 callersMethodConn
(ctx context.Context)
sql/mysql/driver_test.go:238
↓ 3 callersFunctionConvertGenExpr
ConvertGenExpr converts the "as" attribute or the block under the given resource.
sql/internal/specutil/convert.go:680
↓ 3 callersMethodCopilot
Copilot executes a one-shot Copilot session with the provided options.
atlasexec/copilot.go:57
↓ 3 callersFunctionCreate
Create creates all table resources using the given schema driver.
cmd/atlas/internal/migrate/ent/migrate/migrate.go:53
↓ 3 callersMethodCte_table_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:10330
↓ 3 callersFunctionDefault
Default converts a cty.Value (as defined in the spec) into a schema.Expr.
sql/internal/specutil/convert.go:284
↓ 3 callersMethodDependencyOf
(change, other schema.Change)
sql/internal/sqlx/plan.go:452
↓ 3 callersMethodDependsOn
(change, other schema.Change)
sql/internal/sqlx/plan.go:451
↓ 3 callersMethodDetectChanges
DetectChanges implements the ChangeDetector interface.
cmd/atlas/internal/migratelint/lint.go:108
↓ 3 callersMethodDialect
Dialect returns the dialect of the driver we started the transaction from.
cmd/atlas/internal/migrate/ent/tx.go:193
↓ 3 callersMethodExtend
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 callersMethodFailNow
()
cmd/atlas/internal/migrate/ent/enttest/enttest.go:24
↓ 3 callersMethodFields
Fields of the Revision.
cmd/atlas/internal/migrate/ent/schema/revision.go:27
↓ 3 callersMethodFilter_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:22311
↓ 3 callersMethodFinalName
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 callersMethodFloat64
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 callersMethodFormatFile
FormatFile is like Format, but expects and returns a single file.
sql/migrate/dir.go:630
↓ 3 callersFunctionFormatType
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 callersFunctionFormatter
Formatter returns the dir formatter for its URL.
cmd/atlas/internal/migrate/migrate.go:350
↓ 3 callersMethodFrame_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:23606
↓ 3 callersFunctionFromColumn
FromColumn converts a *schema.Column into a *sqlspec.Column using the ColumnTypeSpecFunc.
sql/internal/specutil/convert.go:632
↓ 3 callersFunctionFromGenExpr
FromGenExpr returns the spec for a generated expression.
sql/internal/specutil/convert.go:669
↓ 3 callersFunctionFromIndex
FromIndex converts schema.Index to sqlspec.Index.
sql/internal/specutil/convert.go:768
↓ 3 callersFunctionFromTable
FromTable converts a schema.Table to a sqlspec.Table.
sql/internal/specutil/convert.go:484
↓ 3 callersMethodIDs
IDs executes the query and returns a list of Revision IDs.
cmd/atlas/internal/migrate/ent/revision_query.go:186
↓ 3 callersFunctionIndex
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 callersMethodIndexAddIndex
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 callersMethodIndexDropIndex
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 callersMethodInt
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 callersMethodInt64
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 callersMethodIntegerType
IntegerType returns the underlying integer type this serial type represents.
sql/postgres/inspect.go:1259
↓ 3 callersMethodIsCheckpoint
IsCheckpoint reports whether the file is a checkpoint file.
sql/migrate/migrate.go:1291
← previousnext →601–700 of 7,770, ranked by callers