MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 6 callersFunctionPlanWithChecksum
PlanWithChecksum allows setting if the hash-sum functionality for the migration directory is enabled or not.
sql/migrate/migrate.go:378
↓ 6 callersFunctionRefsAttr
RefsAttr is a helper method for constructing *schemahcl.Attr instances that contain list references.
schemahcl/spec.go:577
↓ 6 callersFunctionRegisterURLParser
RegisterURLParser allows registering a function for parsing the url.URL and attach additional info to the extended URL.
sql/sqlclient/client.go:398
↓ 6 callersMethodRemoveIndex
RemoveIndex removes elements in the given indexes from the Changes.
sql/schema/migrate.go:524
↓ 6 callersFunctionScan
Scan populates the Realm from the schemas and table specs.
sql/internal/specutil/convert.go:115
↓ 6 callersFunctionScanOne
ScanOne scans one record and closes the rows at the end.
sql/internal/sqlx/sqlx.go:64
↓ 6 callersFunctionSchemaName
SchemaName returns the name from a ref to a schema.
sql/internal/specutil/convert.go:851
↓ 6 callersMethodSetStart
SetStart of the position.
sql/schema/dsl.go:905
↓ 6 callersMethodSources
Sources returns the paths containing the Atlas desired schema. The "src" attribute predates the "schema" block. If the "schema" is defined, it takes p
cmd/atlas/internal/cmdapi/project.go:457
↓ 6 callersMethodSpecName
()
sql/schema/exclude.go:185
↓ 6 callersMethodSpecs
Specs returns the TypeSpecs in the registry.
schemahcl/types.go:263
↓ 6 callersFunctionStateReaderSQL
StateReaderSQL returns a migrate.StateReader from an SQL file or a directory of migrations.
cmd/atlas/internal/cmdext/cmdext.go:665
↓ 6 callersMethodString
String returns a single string from a selector. It is only allowed when selecting one field.
cmd/atlas/internal/migrate/ent/ent.go:329
↓ 6 callersMethodStrings
Strings returns list of strings from a selector. It is only allowed when selecting one field.
cmd/atlas/internal/migrate/ent/ent.go:308
↓ 6 callersMethodTableSpan
TableSpan returns the span information for the table.
sql/sqlcheck/sqlcheck.go:192
↓ 6 callersMethodTable_or_subquery
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:18808
↓ 6 callersMethodVarFromURL
VarFromURL returns the string variable (env attribute) from the URL.
cmd/atlas/internal/cmdapi/project.go:230
↓ 6 callersMethodWait
Wait waits for this container to be ready.
cmd/atlas/internal/docker/docker.go:428
↓ 6 callersMethodWhere
Where appends a list predicates to the RevisionMutation builder.
cmd/atlas/internal/migrate/ent/mutation.go:699
↓ 6 callersFunctionaddFlagDevURL
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:344
↓ 6 callersFunctionaddFlagURL
addFlagURL adds a URL flag. If given, args[0] override the name, args[1] the shorthand.
cmd/atlas/internal/cmdapi/cmdapi.go:400
↓ 6 callersFunctioncheckColumn
checkColumn checks if the column exists in the given table.
cmd/atlas/internal/migrate/ent/ent.go:77
↓ 6 callersFunctioncliPath
(t testing.TB)
internal/integration/integration_test.go:782
↓ 6 callersFunctiongenerateHCL
(t *testing.T, token string, srv *httptest.Server)
atlasexec/atlas_test.go:175
↓ 6 callersFunctionnArgs
(start, n int)
sql/postgres/inspect.go:777
↓ 6 callersMethodpick
()
sql/migrate/lex.go:296
↓ 6 callersFunctionrefTo
refTo reports if the given foreign keys reference the given table.
sql/internal/sqlx/plan.go:528
↓ 6 callersFunctionrmCreateStmt
(t *schema.Table)
internal/integration/mysql_test.go:1545
↓ 6 callersFunctionschemaInspectCmd
schemaInspectCmd represents the 'atlas schema inspect' subcommand.
cmd/atlas/internal/cmdapi/cmdapi.go:1158
↓ 6 callersFunctionstateReader
stateReader returns a migrate.StateReader that reads the state from the given urls.
cmd/atlas/internal/cmdapi/cmdapi.go:540
↓ 6 callersFunctiontypeFuncArgs
typeFuncArgs returns the type attributes that are configured via arguments to the type definition, for example precision and scale in a decimal defini
schemahcl/schemahcl.go:1206
↓ 6 callersFunctiontypeTime
(t string, p int)
sql/mysql/sqlspec_test.go:1566
↓ 5 callersMethodAddDirective
AddDirective adds a new directive to the file.
sql/migrate/dir.go:317
↓ 5 callersFunctionArchiveDir
ArchiveDir returns a tar archive of the given directory.
sql/migrate/dir.go:952
↓ 5 callersMethodAsc_desc
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:25524
↓ 5 callersMethodByType
ByType returns the path index for the given type.
schemahcl/spec.go:271
↓ 5 callersMethodChecksum
Checksum implements Dir.Checksum.
sql/migrate/dir.go:507
↓ 5 callersMethodCollation_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:30417
↓ 5 callersFunctionColumnDefault
ColumnDefault converts the column default into cty.Value.
sql/internal/specutil/convert.go:712
↓ 5 callersMethodColumn_name_list
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:21075
↓ 5 callersFunctionCommentDiff
CommentDiff computes the comment diff between the 2 attribute list. Note that, the implementation relies on the fact that both PostgreSQL and MySQL tr
sql/internal/sqlx/diff.go:619
↓ 5 callersMethodCommit
()
sql/sqlite/driver.go:278
↓ 5 callersMethodCommit
(context.Context, *Tx)
cmd/atlas/internal/migrate/ent/tx.go:35
↓ 5 callersMethodDescription
Description returns the value of the "description" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:173
↓ 5 callersMethodDone
Done closes and flushes this report.
cmd/atlas/internal/cmdapi/migrate.go:369
↓ 5 callersFunctionExcludeRealm
ExcludeRealm filters resources in the realm based on the given patterns.
sql/schema/exclude.go:16
↓ 5 callersMethodExec
Exec executes the query.
cmd/atlas/internal/migrate/ent/revision_create.go:164
↓ 5 callersMethodExecutedAt
ExecutedAt returns the value of the "executed_at" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:377
↓ 5 callersMethodExecutionTime
ExecutionTime returns the value of the "execution_time" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:414
↓ 5 callersMethodFieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
cmd/atlas/internal/migrate/ent/mutation.go:1008
↓ 5 callersMethodFiles
Files returns a set of files stored in-memory to be executed on a database.
sql/migrate/dir.go:493
↓ 5 callersMethodHash
Hash returns the value of the "hash" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:567
↓ 5 callersMethodIndexAddColumn
IndexAddColumn returns the index of the first AddColumn in the changes with the given name, or -1 if there is no such change in the Changes.
sql/schema/migrate.go:480
↓ 5 callersMethodIndexDropColumn
IndexDropColumn returns the index of the first DropColumn in the changes with the given name, or -1 if there is no such change in the Changes.
sql/schema/migrate.go:489
↓ 5 callersFunctionInt64Attr
Int64Attr is a helper method for constructing *schemahcl.Attr instances that contain int64 value.
schemahcl/spec.go:523
↓ 5 callersFunctionIsType
IsType return true if somewhere in the type-chain of t1 is the same as t2.
sql/schema/schema.go:644
↓ 5 callersFunctionLatestChanges
LatestChanges implements the ChangeDetector interface by selecting the latest N files as new. It is useful for executing analysis on files in developm
cmd/atlas/internal/migratelint/lint.go:185
↓ 5 callersMethodLimit_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:25147
↓ 5 callersMethodLoadState
(context.Context, *StateReaderConfig)
cmd/atlas/internal/cmdext/cmdext.go:543
↓ 5 callersMethodLock
Lock implements the schema.Locker interface.
sql/postgres/driver.go:153
↓ 5 callersMethodLock
Lock implements the schema.Locker interface.
sql/sqlite/driver.go:170
↓ 5 callersMethodName
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:29733
↓ 5 callersFunctionNew
New creates a new backwards-incompatible changes Analyzer with the given options.
sql/sqlcheck/incompatible/incompatible.go:25
↓ 5 callersFunctionNewClient
NewClient creates a new client configured with the given options.
cmd/atlas/internal/migrate/ent/client.go:38
↓ 5 callersFunctionNewDiffOptions
NewDiffOptions creates a new DiffOptions from the given configuration.
sql/schema/migrate.go:361
↓ 5 callersFunctionNewFloatColumn
NewFloatColumn creates a new FloatType column.
sql/schema/dsl.go:519
↓ 5 callersFunctionNewRevisionClient
NewRevisionClient returns a client for the Revision from the given config.
cmd/atlas/internal/migrate/ent/client.go:215
↓ 5 callersFunctionNewSpatialColumn
NewSpatialColumn creates a new SpatialType column.
sql/schema/dsl.go:578
↓ 5 callersMethodNormalizeRealm
NormalizeRealm returns the normal representation of a database.
sql/schema/inspect.go:168
↓ 5 callersMethodNormalizeSchema
NormalizeSchema returns the normal representation of a schema.
sql/schema/inspect.go:165
↓ 5 callersMethodObject
Object returns the first object that matched the given predicate.
sql/schema/schema.go:134
↓ 5 callersMethodOpen
Open implements fs.FS.
sql/migrate/dir.go:131
↓ 5 callersFunctionOpenWithHooks
OpenWithHooks returns an OpenOption that sets the hooks for the client after opening.
sql/sqlclient/client.go:367
↓ 5 callersMethodOperatorVersion
OperatorVersion returns the value of the "operator_version" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:668
↓ 5 callersMethodOrder_by_expr_asc_desc
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:27745
↓ 5 callersMethodOrder_by_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:24946
↓ 5 callersFunctionParseType
ParseType returns the schema.Type value represented by the given raw type. The raw value is expected to follow the format in PostgreSQL information sc
sql/postgres/convert.go:196
↓ 5 callersFunctionPlanFormat
PlanFormat sets the Formatter of a Planner.
sql/migrate/migrate.go:370
↓ 5 callersMethodPlanSchema
PlanSchema is like Plan but limits its scope to the schema connection. Note, the operation fails in case the connection was not set to a schema.
sql/migrate/migrate.go:409
↓ 5 callersMethodPos
()
sql/schema/schema.go:146
↓ 5 callersFunctionRegisterCodec
RegisterCodec registers static codec for attaching into the client after it is opened.
sql/sqlclient/client.go:406
↓ 5 callersMethodRemoved
Removed records revision that was added.
cmd/atlas/internal/cmdlog/cmdlog.go:354
↓ 5 callersMethodReturning_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:15062
↓ 5 callersMethodRollback
(context.Context, *Tx)
cmd/atlas/internal/migrate/ent/tx.go:91
↓ 5 callersMethodSave
Save executes the query and returns the number of nodes affected by the update operation.
cmd/atlas/internal/migrate/ent/revision_update.go:214
↓ 5 callersMethodScan
Scan reads the Extension into the Resource. Scan will override the Resource name or type if they are set for the extension.
schemahcl/extension.go:449
↓ 5 callersMethodSchemaLint
SchemaLint runs the 'schema lint' command.
atlasexec/atlas_schema.go:798
↓ 5 callersMethodSelect_core
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:17339
↓ 5 callersFunctionSetup
Setup adds statements to execute once the service is ready. For example: setup("CREATE DATABASE IF NOT EXISTS test") setup("DROP SCHEMA IF EXISTS p
cmd/atlas/internal/docker/docker.go:374
↓ 5 callersFunctionSkipCheckpointFiles
SkipCheckpointFiles returns a filtered set of files that are not checkpoint files.
sql/migrate/dir.go:860
↓ 5 callersMethodSkipped
Skipped reports whether the given change should be skipped.
sql/schema/migrate.go:390
↓ 5 callersFunctionStateReaderHCL
StateReaderHCL returns a StateReader that reads the state from the given HCL paths urls.
cmd/atlas/internal/cmdext/reader.go:131
↓ 5 callersFunctionStmts
Stmts provides a generic implementation for extracting SQL statements from the given file contents.
sql/migrate/lex.go:47
↓ 5 callersMethodStrings
Strings returns a slice of strings from the Value of the Attr. If The value is not a ListValue or its values cannot be converted to strings an error i
schemahcl/spec.go:234
↓ 5 callersMethodTx
Tx returns a transactional client.
sql/sqlclient/client.go:95
↓ 5 callersMethodTx
Tx returns the transaction wrapper (txDriver) to avoid Commit or Rollback calls from the internal builders. Should be called only by the internal buil
cmd/atlas/internal/migrate/ent/tx.go:190
↓ 5 callersFunctionUserAgent
UserAgent is the value the CLI uses in the User-Agent HTTP header.
cmd/atlas/internal/cloudapi/client.go:406
↓ 5 callersMethodVars
Vars returns the extra attributes stored in the Env as a map[string]cty.Value.
cmd/atlas/internal/cmdapi/project.go:483
↓ 5 callersFunctionWithAtlasHCL
WithAtlasHCL accept a function to create the atlas.hcl file.
atlasexec/working_dir.go:51
↓ 5 callersFunctionWithSpecs
WithSpecs configures the registry to register the given list of type specs.
schemahcl/types.go:132
← previousnext →401–500 of 7,770, ranked by callers