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
↓ 5 callers
Method
With_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:10043
↓ 5 callers
Method
Write
(p []byte)
cmd/atlas/internal/cmdapi/schema.go:515
↓ 5 callers
Function
addFlagLog
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:375
↓ 5 callers
Method
addIndexes
(t *schema.Table, indexes ...*schema.Index)
sql/sqlite/migrate.go:282
↓ 5 callers
Function
addr
(parentAddr, typeName, blkName, qualifier string)
schemahcl/context.go:338
↓ 5 callers
Function
checkDir
(cmd *cobra.Command, url string, create bool)
cmd/atlas/internal/cmdapi/migrate.go:1452
↓ 5 callers
Function
checkFK
(fk *schema.ForeignKey)
sql/internal/sqlx/plan.go:270
↓ 5 callers
Function
childrenOfType
(r *Resource, types ...string)
schemahcl/extension.go:653
↓ 5 callers
Function
convertCommentFromSpec
convertCommentFromSpec converts a spec comment attribute to a schema element attribute.
sql/internal/specutil/convert.go:1029
↓ 5 callers
Function
directive
directive searches in the content a line that matches a directive with the given prefix and name. For example: directive(c, "delimiter", "-- ") // '
sql/migrate/dir.go:285
↓ 5 callers
Method
done
done computes and sets the ExecutionTime.
sql/migrate/migrate.go:1177
↓ 5 callers
Function
entRevisions
(ctx context.Context, c *sqlclient.Client, flag string)
cmd/atlas/internal/cmdapi/migrate.go:1282
↓ 5 callers
Method
enumIdent
(e *schema.EnumType)
sql/postgres/migrate.go:1294
↓ 5 callers
Method
index
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1086
↓ 5 callers
Function
join
(lines ...string)
sql/sqlite/migrate_test.go:641
↓ 5 callers
Method
lastByte
()
sql/internal/sqlx/sqlx.go:530
↓ 5 callers
Function
makeToFunc
makeToFunc constructs a "to..." function, like "tostring", which converts its argument to a specific type or type kind. Code was copied from: github.c
schemahcl/stdlib.go:196
↓ 5 callers
Function
nArgs
(n int)
sql/mysql/inspect.go:663
↓ 5 callers
Function
newRevisionMutation
newRevisionMutation creates new mutation for the Revision entity.
cmd/atlas/internal/migrate/ent/mutation.go:69
↓ 5 callers
Method
noFKs
(table string)
sql/sqlite/inspect_test.go:587
↓ 5 callers
Method
noIndexes
(table string)
sql/sqlite/inspect_test.go:582
↓ 5 callers
Function
operatorVersion
()
cmd/atlas/internal/cmdapi/migrate.go:1430
↓ 5 callers
Method
querySchema
(ctx context.Context, query string, s *schema.Schema)
sql/postgres/inspect.go:769
↓ 5 callers
Function
requireEqualRevisions
(t *testing.T, expected, actual []*migrate.Revision)
sql/migrate/migrate_test.go:774
↓ 5 callers
Function
runTestWithVersions
(t *testing.T, versions []string, fixtureName string, cb func(t *testing.T, ver *atlasexec.Version, wd *atlase
atlasexec/internal/e2e/util_e2e.go:22
↓ 5 callers
Method
tableExists
(schema, table string, exists bool)
sql/postgres/inspect_test.go:726
↓ 5 callers
Method
tableExists
(table string, exists bool, stmt ...string)
sql/sqlite/inspect_test.go:560
↓ 5 callers
Function
templateFormatter
templateFormatter parses the given templates and passes them on to the migrate.NewTemplateFormatter.
sql/sqltool/tool.go:601
↓ 5 callers
Function
testAddDrop
(t T)
internal/integration/integration_test.go:140
↓ 5 callers
Function
testCLISchemaApplyDry
(t T, h string, url string)
internal/integration/integration_test.go:480
↓ 5 callers
Function
testCLISchemaDiff
(t T, url string)
internal/integration/integration_test.go:618
↓ 5 callers
Function
testCLISchemaInspect
(t T, h string, url string, eval schemahcl.Evaluator, args ...string)
internal/integration/integration_test.go:331
↓ 5 callers
Function
testHCLIntegration
(t T, full string, empty string)
internal/integration/integration_test.go:210
↓ 5 callers
Function
testImplicitIndexes
(t T, db *sql.DB)
internal/integration/integration_test.go:180
↓ 5 callers
Function
testRelation
(t T)
internal/integration/integration_test.go:170
↓ 5 callers
Function
typeDependsOnT
typeDependsOnT reports if the declaration of type "t" depends on the table.
sql/internal/sqlx/plan.go:535
↓ 4 callers
Method
All
All executes the query and returns a list of Revisions.
cmd/atlas/internal/migrate/ent/revision_query.go:167
↓ 4 callers
Function
ApplyChanges
ApplyChanges is a helper used by the different drivers to apply changes.
sql/internal/sqlx/plan.go:44
↓ 4 callers
Function
AttrOr
AttrOr returns the first attribute of the given type, or the given default value.
sql/internal/sqlx/diff.go:573
↓ 4 callers
Method
Check
Check makes an HTTP request to endpoint to check if a new version or security advisories exist for the current version. Check tries to read the latest
cmd/atlas/internal/cmdapi/vercheck/vercheck.go:76
↓ 4 callers
Method
Close
Close redirects calls to Close to the enclosed io.Closer.
cmd/atlas/internal/cmdext/reader.go:50
↓ 4 callers
Method
Close
Close stops and removes this container.
cmd/atlas/internal/docker/docker.go:423
↓ 4 callers
Method
Column_def
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:5684
↓ 4 callers
Method
Columns
Columns returns the names of the columns in the result set.
sdk/recordriver/driver.go:155
↓ 4 callers
Method
DefaultFor
DefaultFor reports if the operator_class is the default for the index part.
sql/postgres/inspect.go:1297
↓ 4 callers
Method
DeleteRevision
DeleteRevision deletes a revision by version from the storage.
sql/migrate/migrate.go:234
↓ 4 callers
Function
Driver
Driver configures the client driver.
cmd/atlas/internal/migrate/ent/client.go:101
↓ 4 callers
Method
Err
Err returns the error, if any, that occurred while reading the stream.
atlasexec/atlas.go:313
↓ 4 callers
Method
ErrorStmt
ErrorStmt returns the value of the "error_stmt" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:518
↓ 4 callers
Function
ExcludeSchema
ExcludeSchema filters resources in the schema based on the given patterns.
sql/schema/exclude.go:64
↓ 4 callers
Function
ExprLastIndex
ExprLastIndex scans the first expression in the given string until its end and returns its last index.
sql/internal/sqlx/sqlx.go:620
↓ 4 callers
Method
Field
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in t
cmd/atlas/internal/migrate/ent/mutation.go:772
↓ 4 callers
Method
FormatTo
FormatTo calls Format and writes the files' content to the given writer.
sql/migrate/dir.go:642
↓ 4 callers
Function
FromSchema
FromSchema converts a schema.Schema into sqlspec.Schema and []sqlspec.Table.
sql/internal/specutil/convert.go:462
↓ 4 callers
Function
FromVar
FromVar is the inverse function of Var.
sql/internal/specutil/convert.go:1063
↓ 4 callers
Function
HCLBytesFunc
HCLBytesFunc returns a helper that evaluates an HCL document from a byte slice instead of from an hclparse.Parser instance.
sql/internal/specutil/spec.go:207
↓ 4 callers
Method
Index_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:30645
↓ 4 callers
Function
IsLiteralNumber
IsLiteralNumber reports if the given string is a literal number.
sql/internal/sqlx/sqlx.go:578
↓ 4 callers
Method
Lock
Lock implements the schema.Locker interface.
sql/mysql/driver.go:137
↓ 4 callers
Method
MapCommaErr
MapCommaErr is like MapComma, but returns an error if f returns an error.
sql/internal/sqlx/sqlx.go:455
↓ 4 callers
Method
MarshalText
MarshalText implements encoding.TextMarshaler.
sql/migrate/dir.go:703
↓ 4 callers
Method
Migrate
Migrate applies the migration of the revisions table.
cmd/atlas/internal/migrate/migrate.go:42
↓ 4 callers
Method
Migrate
Migrate attempts to create / update the revisions table. This is separated since Ent attempts to wrap the migration execution in a transaction and ass
cmd/atlas/internal/migrate/migrate.go:217
↓ 4 callers
Method
MigrateApplySlice
MigrateApplySlice runs the 'migrate apply' command for multiple targets.
atlasexec/atlas_migrate.go:275
↓ 4 callers
Method
MigrateLintError
MigrateLintError runs the 'migrate lint' command, the output is written to params.Writer and reports if an error occurred. If the error is a setup err
atlasexec/atlas_migrate.go:610
↓ 4 callers
Method
MigrateLs
MigrateLs runs the 'migrate ls' command and returns the listed migration file names (or versions when Short is true), one per line.
atlasexec/atlas_migrate.go:444
↓ 4 callers
Function
New
New creates a new constraint-dropping Analyzer with the given options.
sql/sqlcheck/condrop/condrop.go:24
↓ 4 callers
Function
New
New returns a new VerChecker for the endpoint.
cmd/atlas/internal/cmdapi/vercheck/vercheck.go:25
↓ 4 callers
Function
NewConfig
NewConfig returns a new config with the given options applied.
cmd/atlas/internal/docker/docker.go:73
↓ 4 callers
Function
NewEnv
NewEnv returns an initialized Env.
cmd/atlas/internal/cmdlog/cmdlog.go:115
↓ 4 callers
Function
NewGolangMigrateDir
NewGolangMigrateDir returns a new GolangMigrateDir.
sql/sqltool/tool.go:84
↓ 4 callers
Function
NewNullStringColumn
NewNullStringColumn creates a new nullable StringType column.
sql/schema/dsl.go:457
↓ 4 callers
Function
ObjectRef
ObjectRef returns a reference to the object. In case there is more than one object of this type with the same name, the reference will be qualified wi
sql/internal/specutil/spec.go:174
↓ 4 callers
Function
OpenURL
OpenURL opens an Atlas client by its provided url.URL.
sql/sqlclient/client.go:314
↓ 4 callers
Method
PartialHashes
PartialHashes returns the value of the "partial_hashes" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:604
↓ 4 callers
Function
Port
Port sets the port the container services exposes. For example: Port("3306") Port("5432")
cmd/atlas/internal/docker/docker.go:321
↓ 4 callers
Function
PostgreSQL
PostgreSQL returns a new Config for a PostgreSQL image.
cmd/atlas/internal/docker/docker.go:252
↓ 4 callers
Method
Qualified_table_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:21902
↓ 4 callers
Function
RealmConn
RealmConn returns a StateReader for a Driver connected to a database.
sql/migrate/migrate.go:189
↓ 4 callers
Method
Result_column
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:19306
↓ 4 callers
Function
ScanNullBool
ScanNullBool scans one sql.NullBool record and closes the rows at the end.
sql/internal/sqlx/sqlx.go:76
↓ 4 callers
Method
SchemaApply
SchemaApply runs the 'schema apply' command.
atlasexec/atlas_schema.go:322
↓ 4 callers
Function
SchemaConn
SchemaConn returns a StateReader for a Driver connected to a schema.
sql/migrate/migrate.go:196
↓ 4 callers
Method
SchemaInspect
SchemaInspect runs the 'schema inspect' command.
atlasexec/atlas_schema.go:377
↓ 4 callers
Method
SchemaResource
SchemaResource writes the schema resource identifier to the builder, prefixed with the schema name if exists.
sql/internal/sqlx/sqlx.go:355
↓ 4 callers
Method
SetRealm
SetRealm sets the database/realm of the schema.
sql/schema/dsl.go:61
↓ 4 callers
Method
SetUnique
SetUnique configures the uniqueness of the index.
sql/schema/dsl.go:714
↓ 4 callers
Function
SortChanges
SortChanges is a helper function to sort to level changes based on their priority.
sql/internal/sqlx/plan.go:393
↓ 4 callers
Method
StepResult
StepResult appends step result to the summary.
cmd/atlas/internal/migratelint/lint.go:890
↓ 4 callers
Function
StringSize
StringSize configures the size of the string type.
sql/schema/dsl.go:441
↓ 4 callers
Function
StringsAttr
StringsAttr is a helper method for constructing *schemahcl.Attr instances that contain list strings.
schemahcl/spec.go:565
↓ 4 callers
Method
Table_alias
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31329
↓ 4 callers
Method
Type
Type returns the node type of this mutation (Revision).
cmd/atlas/internal/migrate/ent/mutation.go:724
↓ 4 callers
Method
URL
URL returns a URL to connect to the Container.
cmd/atlas/internal/docker/docker.go:477
↓ 4 callers
Method
UnmarshalText
UnmarshalText parses the operator class from its string representation.
sql/postgres/inspect.go:1370
↓ 4 callers
Function
Userinfo
Userinfo sets the user to connect to the database. For example: Userinfo(url.User("root", "pass"))
cmd/atlas/internal/docker/docker.go:352
↓ 4 callers
Method
Window_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31557
↓ 4 callers
Method
WriteRevision
WriteRevision writes a revision to the revisions table.
cmd/atlas/internal/migrate/migrate.go:195
↓ 4 callers
Function
addFlagSchemas
(set *pflag.FlagSet, target *[]string)
cmd/atlas/internal/cmdapi/cmdapi.go:390
↓ 4 callers
Function
addTableChange
addTableChange returns the changeset for creating the table.
sql/internal/sqlx/diff.go:302
← previous
next →
501–600 of 7,770, ranked by callers