MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 5 callersMethodWith_clause
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:10043
↓ 5 callersMethodWrite
(p []byte)
cmd/atlas/internal/cmdapi/schema.go:515
↓ 5 callersFunctionaddFlagLog
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:375
↓ 5 callersMethodaddIndexes
(t *schema.Table, indexes ...*schema.Index)
sql/sqlite/migrate.go:282
↓ 5 callersFunctionaddr
(parentAddr, typeName, blkName, qualifier string)
schemahcl/context.go:338
↓ 5 callersFunctioncheckDir
(cmd *cobra.Command, url string, create bool)
cmd/atlas/internal/cmdapi/migrate.go:1452
↓ 5 callersFunctioncheckFK
(fk *schema.ForeignKey)
sql/internal/sqlx/plan.go:270
↓ 5 callersFunctionchildrenOfType
(r *Resource, types ...string)
schemahcl/extension.go:653
↓ 5 callersFunctionconvertCommentFromSpec
convertCommentFromSpec converts a spec comment attribute to a schema element attribute.
sql/internal/specutil/convert.go:1029
↓ 5 callersFunctiondirective
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 callersMethoddone
done computes and sets the ExecutionTime.
sql/migrate/migrate.go:1177
↓ 5 callersFunctionentRevisions
(ctx context.Context, c *sqlclient.Client, flag string)
cmd/atlas/internal/cmdapi/migrate.go:1282
↓ 5 callersMethodenumIdent
(e *schema.EnumType)
sql/postgres/migrate.go:1294
↓ 5 callersMethodindex
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1086
↓ 5 callersFunctionjoin
(lines ...string)
sql/sqlite/migrate_test.go:641
↓ 5 callersMethodlastByte
()
sql/internal/sqlx/sqlx.go:530
↓ 5 callersFunctionmakeToFunc
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 callersFunctionnArgs
(n int)
sql/mysql/inspect.go:663
↓ 5 callersFunctionnewRevisionMutation
newRevisionMutation creates new mutation for the Revision entity.
cmd/atlas/internal/migrate/ent/mutation.go:69
↓ 5 callersMethodnoFKs
(table string)
sql/sqlite/inspect_test.go:587
↓ 5 callersMethodnoIndexes
(table string)
sql/sqlite/inspect_test.go:582
↓ 5 callersFunctionoperatorVersion
()
cmd/atlas/internal/cmdapi/migrate.go:1430
↓ 5 callersMethodquerySchema
(ctx context.Context, query string, s *schema.Schema)
sql/postgres/inspect.go:769
↓ 5 callersFunctionrequireEqualRevisions
(t *testing.T, expected, actual []*migrate.Revision)
sql/migrate/migrate_test.go:774
↓ 5 callersFunctionrunTestWithVersions
(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 callersMethodtableExists
(schema, table string, exists bool)
sql/postgres/inspect_test.go:726
↓ 5 callersMethodtableExists
(table string, exists bool, stmt ...string)
sql/sqlite/inspect_test.go:560
↓ 5 callersFunctiontemplateFormatter
templateFormatter parses the given templates and passes them on to the migrate.NewTemplateFormatter.
sql/sqltool/tool.go:601
↓ 5 callersFunctiontestAddDrop
(t T)
internal/integration/integration_test.go:140
↓ 5 callersFunctiontestCLISchemaApplyDry
(t T, h string, url string)
internal/integration/integration_test.go:480
↓ 5 callersFunctiontestCLISchemaDiff
(t T, url string)
internal/integration/integration_test.go:618
↓ 5 callersFunctiontestCLISchemaInspect
(t T, h string, url string, eval schemahcl.Evaluator, args ...string)
internal/integration/integration_test.go:331
↓ 5 callersFunctiontestHCLIntegration
(t T, full string, empty string)
internal/integration/integration_test.go:210
↓ 5 callersFunctiontestImplicitIndexes
(t T, db *sql.DB)
internal/integration/integration_test.go:180
↓ 5 callersFunctiontestRelation
(t T)
internal/integration/integration_test.go:170
↓ 5 callersFunctiontypeDependsOnT
typeDependsOnT reports if the declaration of type "t" depends on the table.
sql/internal/sqlx/plan.go:535
↓ 4 callersMethodAll
All executes the query and returns a list of Revisions.
cmd/atlas/internal/migrate/ent/revision_query.go:167
↓ 4 callersFunctionApplyChanges
ApplyChanges is a helper used by the different drivers to apply changes.
sql/internal/sqlx/plan.go:44
↓ 4 callersFunctionAttrOr
AttrOr returns the first attribute of the given type, or the given default value.
sql/internal/sqlx/diff.go:573
↓ 4 callersMethodCheck
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 callersMethodClose
Close redirects calls to Close to the enclosed io.Closer.
cmd/atlas/internal/cmdext/reader.go:50
↓ 4 callersMethodClose
Close stops and removes this container.
cmd/atlas/internal/docker/docker.go:423
↓ 4 callersMethodColumn_def
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:5684
↓ 4 callersMethodColumns
Columns returns the names of the columns in the result set.
sdk/recordriver/driver.go:155
↓ 4 callersMethodDefaultFor
DefaultFor reports if the operator_class is the default for the index part.
sql/postgres/inspect.go:1297
↓ 4 callersMethodDeleteRevision
DeleteRevision deletes a revision by version from the storage.
sql/migrate/migrate.go:234
↓ 4 callersFunctionDriver
Driver configures the client driver.
cmd/atlas/internal/migrate/ent/client.go:101
↓ 4 callersMethodErr
Err returns the error, if any, that occurred while reading the stream.
atlasexec/atlas.go:313
↓ 4 callersMethodErrorStmt
ErrorStmt returns the value of the "error_stmt" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:518
↓ 4 callersFunctionExcludeSchema
ExcludeSchema filters resources in the schema based on the given patterns.
sql/schema/exclude.go:64
↓ 4 callersFunctionExprLastIndex
ExprLastIndex scans the first expression in the given string until its end and returns its last index.
sql/internal/sqlx/sqlx.go:620
↓ 4 callersMethodField
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 callersMethodFormatTo
FormatTo calls Format and writes the files' content to the given writer.
sql/migrate/dir.go:642
↓ 4 callersFunctionFromSchema
FromSchema converts a schema.Schema into sqlspec.Schema and []sqlspec.Table.
sql/internal/specutil/convert.go:462
↓ 4 callersFunctionFromVar
FromVar is the inverse function of Var.
sql/internal/specutil/convert.go:1063
↓ 4 callersFunctionHCLBytesFunc
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 callersMethodIndex_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:30645
↓ 4 callersFunctionIsLiteralNumber
IsLiteralNumber reports if the given string is a literal number.
sql/internal/sqlx/sqlx.go:578
↓ 4 callersMethodLock
Lock implements the schema.Locker interface.
sql/mysql/driver.go:137
↓ 4 callersMethodMapCommaErr
MapCommaErr is like MapComma, but returns an error if f returns an error.
sql/internal/sqlx/sqlx.go:455
↓ 4 callersMethodMarshalText
MarshalText implements encoding.TextMarshaler.
sql/migrate/dir.go:703
↓ 4 callersMethodMigrate
Migrate applies the migration of the revisions table.
cmd/atlas/internal/migrate/migrate.go:42
↓ 4 callersMethodMigrate
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 callersMethodMigrateApplySlice
MigrateApplySlice runs the 'migrate apply' command for multiple targets.
atlasexec/atlas_migrate.go:275
↓ 4 callersMethodMigrateLintError
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 callersMethodMigrateLs
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 callersFunctionNew
New creates a new constraint-dropping Analyzer with the given options.
sql/sqlcheck/condrop/condrop.go:24
↓ 4 callersFunctionNew
New returns a new VerChecker for the endpoint.
cmd/atlas/internal/cmdapi/vercheck/vercheck.go:25
↓ 4 callersFunctionNewConfig
NewConfig returns a new config with the given options applied.
cmd/atlas/internal/docker/docker.go:73
↓ 4 callersFunctionNewEnv
NewEnv returns an initialized Env.
cmd/atlas/internal/cmdlog/cmdlog.go:115
↓ 4 callersFunctionNewGolangMigrateDir
NewGolangMigrateDir returns a new GolangMigrateDir.
sql/sqltool/tool.go:84
↓ 4 callersFunctionNewNullStringColumn
NewNullStringColumn creates a new nullable StringType column.
sql/schema/dsl.go:457
↓ 4 callersFunctionObjectRef
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 callersFunctionOpenURL
OpenURL opens an Atlas client by its provided url.URL.
sql/sqlclient/client.go:314
↓ 4 callersMethodPartialHashes
PartialHashes returns the value of the "partial_hashes" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:604
↓ 4 callersFunctionPort
Port sets the port the container services exposes. For example: Port("3306") Port("5432")
cmd/atlas/internal/docker/docker.go:321
↓ 4 callersFunctionPostgreSQL
PostgreSQL returns a new Config for a PostgreSQL image.
cmd/atlas/internal/docker/docker.go:252
↓ 4 callersMethodQualified_table_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:21902
↓ 4 callersFunctionRealmConn
RealmConn returns a StateReader for a Driver connected to a database.
sql/migrate/migrate.go:189
↓ 4 callersMethodResult_column
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:19306
↓ 4 callersFunctionScanNullBool
ScanNullBool scans one sql.NullBool record and closes the rows at the end.
sql/internal/sqlx/sqlx.go:76
↓ 4 callersMethodSchemaApply
SchemaApply runs the 'schema apply' command.
atlasexec/atlas_schema.go:322
↓ 4 callersFunctionSchemaConn
SchemaConn returns a StateReader for a Driver connected to a schema.
sql/migrate/migrate.go:196
↓ 4 callersMethodSchemaInspect
SchemaInspect runs the 'schema inspect' command.
atlasexec/atlas_schema.go:377
↓ 4 callersMethodSchemaResource
SchemaResource writes the schema resource identifier to the builder, prefixed with the schema name if exists.
sql/internal/sqlx/sqlx.go:355
↓ 4 callersMethodSetRealm
SetRealm sets the database/realm of the schema.
sql/schema/dsl.go:61
↓ 4 callersMethodSetUnique
SetUnique configures the uniqueness of the index.
sql/schema/dsl.go:714
↓ 4 callersFunctionSortChanges
SortChanges is a helper function to sort to level changes based on their priority.
sql/internal/sqlx/plan.go:393
↓ 4 callersMethodStepResult
StepResult appends step result to the summary.
cmd/atlas/internal/migratelint/lint.go:890
↓ 4 callersFunctionStringSize
StringSize configures the size of the string type.
sql/schema/dsl.go:441
↓ 4 callersFunctionStringsAttr
StringsAttr is a helper method for constructing *schemahcl.Attr instances that contain list strings.
schemahcl/spec.go:565
↓ 4 callersMethodTable_alias
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31329
↓ 4 callersMethodType
Type returns the node type of this mutation (Revision).
cmd/atlas/internal/migrate/ent/mutation.go:724
↓ 4 callersMethodURL
URL returns a URL to connect to the Container.
cmd/atlas/internal/docker/docker.go:477
↓ 4 callersMethodUnmarshalText
UnmarshalText parses the operator class from its string representation.
sql/postgres/inspect.go:1370
↓ 4 callersFunctionUserinfo
Userinfo sets the user to connect to the database. For example: Userinfo(url.User("root", "pass"))
cmd/atlas/internal/docker/docker.go:352
↓ 4 callersMethodWindow_name
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31557
↓ 4 callersMethodWriteRevision
WriteRevision writes a revision to the revisions table.
cmd/atlas/internal/migrate/migrate.go:195
↓ 4 callersFunctionaddFlagSchemas
(set *pflag.FlagSet, target *[]string)
cmd/atlas/internal/cmdapi/cmdapi.go:390
↓ 4 callersFunctionaddTableChange
addTableChange returns the changeset for creating the table.
sql/internal/sqlx/diff.go:302
← previousnext →501–600 of 7,770, ranked by callers