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
↓ 6 callers
Function
PlanWithChecksum
PlanWithChecksum allows setting if the hash-sum functionality for the migration directory is enabled or not.
sql/migrate/migrate.go:378
↓ 6 callers
Function
RefsAttr
RefsAttr is a helper method for constructing *schemahcl.Attr instances that contain list references.
schemahcl/spec.go:577
↓ 6 callers
Function
RegisterURLParser
RegisterURLParser allows registering a function for parsing the url.URL and attach additional info to the extended URL.
sql/sqlclient/client.go:398
↓ 6 callers
Method
RemoveIndex
RemoveIndex removes elements in the given indexes from the Changes.
sql/schema/migrate.go:524
↓ 6 callers
Function
Scan
Scan populates the Realm from the schemas and table specs.
sql/internal/specutil/convert.go:115
↓ 6 callers
Function
ScanOne
ScanOne scans one record and closes the rows at the end.
sql/internal/sqlx/sqlx.go:64
↓ 6 callers
Function
SchemaName
SchemaName returns the name from a ref to a schema.
sql/internal/specutil/convert.go:851
↓ 6 callers
Method
SetStart
SetStart of the position.
sql/schema/dsl.go:905
↓ 6 callers
Method
Sources
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 callers
Method
SpecName
()
sql/schema/exclude.go:185
↓ 6 callers
Method
Specs
Specs returns the TypeSpecs in the registry.
schemahcl/types.go:263
↓ 6 callers
Function
StateReaderSQL
StateReaderSQL returns a migrate.StateReader from an SQL file or a directory of migrations.
cmd/atlas/internal/cmdext/cmdext.go:665
↓ 6 callers
Method
String
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 callers
Method
Strings
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 callers
Method
TableSpan
TableSpan returns the span information for the table.
sql/sqlcheck/sqlcheck.go:192
↓ 6 callers
Method
Table_or_subquery
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:18808
↓ 6 callers
Method
VarFromURL
VarFromURL returns the string variable (env attribute) from the URL.
cmd/atlas/internal/cmdapi/project.go:230
↓ 6 callers
Method
Wait
Wait waits for this container to be ready.
cmd/atlas/internal/docker/docker.go:428
↓ 6 callers
Method
Where
Where appends a list predicates to the RevisionMutation builder.
cmd/atlas/internal/migrate/ent/mutation.go:699
↓ 6 callers
Function
addFlagDevURL
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:344
↓ 6 callers
Function
addFlagURL
addFlagURL adds a URL flag. If given, args[0] override the name, args[1] the shorthand.
cmd/atlas/internal/cmdapi/cmdapi.go:400
↓ 6 callers
Function
checkColumn
checkColumn checks if the column exists in the given table.
cmd/atlas/internal/migrate/ent/ent.go:77
↓ 6 callers
Function
cliPath
(t testing.TB)
internal/integration/integration_test.go:782
↓ 6 callers
Function
generateHCL
(t *testing.T, token string, srv *httptest.Server)
atlasexec/atlas_test.go:175
↓ 6 callers
Function
nArgs
(start, n int)
sql/postgres/inspect.go:777
↓ 6 callers
Method
pick
()
sql/migrate/lex.go:296
↓ 6 callers
Function
refTo
refTo reports if the given foreign keys reference the given table.
sql/internal/sqlx/plan.go:528
↓ 6 callers
Function
rmCreateStmt
(t *schema.Table)
internal/integration/mysql_test.go:1545
↓ 6 callers
Function
schemaInspectCmd
schemaInspectCmd represents the 'atlas schema inspect' subcommand.
cmd/atlas/internal/cmdapi/cmdapi.go:1158
↓ 6 callers
Function
stateReader
stateReader returns a migrate.StateReader that reads the state from the given urls.
cmd/atlas/internal/cmdapi/cmdapi.go:540
↓ 6 callers
Function
typeFuncArgs
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 callers
Function
typeTime
(t string, p int)
sql/mysql/sqlspec_test.go:1566
↓ 5 callers
Method
AddDirective
AddDirective adds a new directive to the file.
sql/migrate/dir.go:317
↓ 5 callers
Function
ArchiveDir
ArchiveDir returns a tar archive of the given directory.
sql/migrate/dir.go:952
↓ 5 callers
Method
Asc_desc
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:25524
↓ 5 callers
Method
ByType
ByType returns the path index for the given type.
schemahcl/spec.go:271
↓ 5 callers
Method
Checksum
Checksum implements Dir.Checksum.
sql/migrate/dir.go:507
↓ 5 callers
Method
Collation_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:30417
↓ 5 callers
Function
ColumnDefault
ColumnDefault converts the column default into cty.Value.
sql/internal/specutil/convert.go:712
↓ 5 callers
Method
Column_name_list
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:21075
↓ 5 callers
Function
CommentDiff
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 callers
Method
Commit
()
sql/sqlite/driver.go:278
↓ 5 callers
Method
Commit
(context.Context, *Tx)
cmd/atlas/internal/migrate/ent/tx.go:35
↓ 5 callers
Method
Description
Description returns the value of the "description" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:173
↓ 5 callers
Method
Done
Done closes and flushes this report.
cmd/atlas/internal/cmdapi/migrate.go:369
↓ 5 callers
Function
ExcludeRealm
ExcludeRealm filters resources in the realm based on the given patterns.
sql/schema/exclude.go:16
↓ 5 callers
Method
Exec
Exec executes the query.
cmd/atlas/internal/migrate/ent/revision_create.go:164
↓ 5 callers
Method
ExecutedAt
ExecutedAt returns the value of the "executed_at" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:377
↓ 5 callers
Method
ExecutionTime
ExecutionTime returns the value of the "execution_time" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:414
↓ 5 callers
Method
FieldCleared
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 callers
Method
Files
Files returns a set of files stored in-memory to be executed on a database.
sql/migrate/dir.go:493
↓ 5 callers
Method
Hash
Hash returns the value of the "hash" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:567
↓ 5 callers
Method
IndexAddColumn
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 callers
Method
IndexDropColumn
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 callers
Function
Int64Attr
Int64Attr is a helper method for constructing *schemahcl.Attr instances that contain int64 value.
schemahcl/spec.go:523
↓ 5 callers
Function
IsType
IsType return true if somewhere in the type-chain of t1 is the same as t2.
sql/schema/schema.go:644
↓ 5 callers
Function
LatestChanges
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 callers
Method
Limit_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:25147
↓ 5 callers
Method
LoadState
(context.Context, *StateReaderConfig)
cmd/atlas/internal/cmdext/cmdext.go:543
↓ 5 callers
Method
Lock
Lock implements the schema.Locker interface.
sql/postgres/driver.go:153
↓ 5 callers
Method
Lock
Lock implements the schema.Locker interface.
sql/sqlite/driver.go:170
↓ 5 callers
Method
Name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:29733
↓ 5 callers
Function
New
New creates a new backwards-incompatible changes Analyzer with the given options.
sql/sqlcheck/incompatible/incompatible.go:25
↓ 5 callers
Function
NewClient
NewClient creates a new client configured with the given options.
cmd/atlas/internal/migrate/ent/client.go:38
↓ 5 callers
Function
NewDiffOptions
NewDiffOptions creates a new DiffOptions from the given configuration.
sql/schema/migrate.go:361
↓ 5 callers
Function
NewFloatColumn
NewFloatColumn creates a new FloatType column.
sql/schema/dsl.go:519
↓ 5 callers
Function
NewRevisionClient
NewRevisionClient returns a client for the Revision from the given config.
cmd/atlas/internal/migrate/ent/client.go:215
↓ 5 callers
Function
NewSpatialColumn
NewSpatialColumn creates a new SpatialType column.
sql/schema/dsl.go:578
↓ 5 callers
Method
NormalizeRealm
NormalizeRealm returns the normal representation of a database.
sql/schema/inspect.go:168
↓ 5 callers
Method
NormalizeSchema
NormalizeSchema returns the normal representation of a schema.
sql/schema/inspect.go:165
↓ 5 callers
Method
Object
Object returns the first object that matched the given predicate.
sql/schema/schema.go:134
↓ 5 callers
Method
Open
Open implements fs.FS.
sql/migrate/dir.go:131
↓ 5 callers
Function
OpenWithHooks
OpenWithHooks returns an OpenOption that sets the hooks for the client after opening.
sql/sqlclient/client.go:367
↓ 5 callers
Method
OperatorVersion
OperatorVersion returns the value of the "operator_version" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:668
↓ 5 callers
Method
Order_by_expr_asc_desc
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:27745
↓ 5 callers
Method
Order_by_stmt
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:24946
↓ 5 callers
Function
ParseType
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 callers
Function
PlanFormat
PlanFormat sets the Formatter of a Planner.
sql/migrate/migrate.go:370
↓ 5 callers
Method
PlanSchema
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 callers
Method
Pos
()
sql/schema/schema.go:146
↓ 5 callers
Function
RegisterCodec
RegisterCodec registers static codec for attaching into the client after it is opened.
sql/sqlclient/client.go:406
↓ 5 callers
Method
Removed
Removed records revision that was added.
cmd/atlas/internal/cmdlog/cmdlog.go:354
↓ 5 callers
Method
Returning_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:15062
↓ 5 callers
Method
Rollback
(context.Context, *Tx)
cmd/atlas/internal/migrate/ent/tx.go:91
↓ 5 callers
Method
Save
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 callers
Method
Scan
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 callers
Method
SchemaLint
SchemaLint runs the 'schema lint' command.
atlasexec/atlas_schema.go:798
↓ 5 callers
Method
Select_core
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:17339
↓ 5 callers
Function
Setup
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 callers
Function
SkipCheckpointFiles
SkipCheckpointFiles returns a filtered set of files that are not checkpoint files.
sql/migrate/dir.go:860
↓ 5 callers
Method
Skipped
Skipped reports whether the given change should be skipped.
sql/schema/migrate.go:390
↓ 5 callers
Function
StateReaderHCL
StateReaderHCL returns a StateReader that reads the state from the given HCL paths urls.
cmd/atlas/internal/cmdext/reader.go:131
↓ 5 callers
Function
Stmts
Stmts provides a generic implementation for extracting SQL statements from the given file contents.
sql/migrate/lex.go:47
↓ 5 callers
Method
Strings
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 callers
Method
Tx
Tx returns a transactional client.
sql/sqlclient/client.go:95
↓ 5 callers
Method
Tx
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 callers
Function
UserAgent
UserAgent is the value the CLI uses in the User-Agent HTTP header.
cmd/atlas/internal/cloudapi/client.go:406
↓ 5 callers
Method
Vars
Vars returns the extra attributes stored in the Env as a map[string]cty.Value.
cmd/atlas/internal/cmdapi/project.go:483
↓ 5 callers
Function
WithAtlasHCL
WithAtlasHCL accept a function to create the atlas.hcl file.
atlasexec/working_dir.go:51
↓ 5 callers
Function
WithSpecs
WithSpecs configures the registry to register the given list of type specs.
schemahcl/types.go:132
← previous
next →
401–500 of 7,770, ranked by callers