MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 8 callersMethodIdent
Ident writes the given string quoted as an SQL identifier.
sql/internal/sqlx/sqlx.go:293
↓ 8 callersFunctionImage
Image sets the docker image to use. For example: Image("mysql") Image("arigaio", "mysql") Image("postgres:13")
cmd/atlas/internal/docker/docker.go:307
↓ 8 callersMethodIs
Is reports whether m is match the given mode.
sql/migrate/migrate.go:162
↓ 8 callersMethodIsCheckpoint
IsCheckpoint returns true if the file is a checkpoint file.
sql/migrate/dir.go:88
↓ 8 callersFunctionIsNotFound
IsNotFound returns a boolean indicating whether the error is a not found error.
cmd/atlas/internal/migrate/ent/ent.go:211
↓ 8 callersFunctionIsUint
IsUint reports whether the string represents an unsigned integer.
sql/internal/sqlx/sqlx.go:675
↓ 8 callersMethodMigrateLint
MigrateLint runs the 'migrate lint' command.
atlasexec/atlas_migrate.go:548
↓ 8 callersFunctionNew
New creates a new data-dependent analyzer with the given options.
sql/sqlcheck/datadepend/datadepend.go:53
↓ 8 callersFunctionNewSchemaInspect
NewSchemaInspect returns a SchemaInspect.
cmd/atlas/internal/cmdlog/cmdlog.go:788
↓ 8 callersMethodParseURL
(*url.URL)
sql/sqlclient/client.go:241
↓ 8 callersMethodPath
()
sql/sqltool/tool.go:627
↓ 8 callersMethodRead
Read reads the value from the file system.
cmd/atlas/internal/cmdstate/cmdstate.go:30
↓ 8 callersMethodScan
Scan implements sql.Scanner interface.
sql/postgres/inspect.go:1207
↓ 8 callersMethodSigned_number
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:6765
↓ 8 callersMethodSnapshot
Snapshot takes a snapshot of the current database state and returns a function that can be called to restore that state. Snapshot should return an err
sql/migrate/migrate.go:1098
↓ 8 callersMethodWriteReport
(*SummaryReport)
cmd/atlas/internal/migratelint/lint.go:849
↓ 8 callersFunctionaddFlagDirFormat
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:320
↓ 8 callersFunctionaddFlagFormat
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:382
↓ 8 callersFunctiondel
del searches an attribute of the same type as v in the list and deletes it.
sql/schema/dsl.go:918
↓ 8 callersFunctiondirFormatBC
dirFormatBC ensures the soon-to-be deprecated --dir-format flag gets set on all migration directory URLs.
cmd/atlas/internal/cmdapi/migrate.go:1436
↓ 8 callersFunctionflywayVersion
(path string)
sql/sqltool/tool.go:548
↓ 8 callersFunctionjoin
(lines ...string)
sql/mysql/migrate_test.go:1414
↓ 8 callersMethodquoted
(s string)
internal/integration/mysql_test.go:1468
↓ 8 callersMethodrewriteLastByte
(c byte)
sql/internal/sqlx/sqlx.go:538
↓ 8 callersFunctionselectEnv
selectEnv returns the Env from the current project file based on the selected argument. If selected is "", or no project file exists in the current di
cmd/atlas/internal/cmdapi/schema.go:338
↓ 8 callersFunctionstoredOrVirtual
storedOrVirtual returns a STORED or VIRTUAL generated type option based on the given string.
sql/mysql/sqlspec.go:401
↓ 7 callersFunctionAbortErrorf
AbortErrorf is like fmt.Errorf for creating AbortError.
cmd/atlas/internal/cmdapi/cmdapi.go:134
↓ 7 callersMethodAddChecks
AddChecks appends the given checks to the attribute list.
sql/schema/dsl.go:202
↓ 7 callersFunctionAnalyzerFor
AnalyzerFor instantiates a new Analyzer from the given HCL resource based on the registered constructor function.
sql/sqlcheck/sqlcheck.go:317
↓ 7 callersFunctionAppendPos
AppendPos appends the range to the attributes.
schemahcl/spec.go:683
↓ 7 callersMethodCheckClean
CheckClean implements migrate.CleanChecker.
sql/mysql/driver.go:221
↓ 7 callersFunctionColumnRef
ColumnRef returns the reference of a column by its name.
sql/internal/specutil/convert.go:987
↓ 7 callersMethodConvert
Convert converts the schema.Type to a *schemahcl.Type.
schemahcl/types.go:174
↓ 7 callersMethodCopy
Copy returns a copy of the current variables.
cmd/atlas/internal/cmdapi/cmdapi.go:229
↓ 7 callersMethodDetectChanges
DetectChanges splits the files of a migration directory into the "base" files (already merged) and new ones.
cmd/atlas/internal/migratelint/lint.go:34
↓ 7 callersMethodDialect
Dialect returns the "ent dialect" of the Ent client.
cmd/atlas/internal/migrate/migrate.go:58
↓ 7 callersMethodDirective
Directive returns all directive comments with the given name. See: pkg.go.dev/cmd/compile#hdr-Compiler_Directives.
sql/migrate/lex.go:28
↓ 7 callersMethodError
Error implements the error interface.
atlasexec/atlas_migrate.go:809
↓ 7 callersMethodError
Error implements the error interface.
atlasexec/atlas_schema.go:870
↓ 7 callersFunctionNew
New creates a new destructive changes Analyzer with the given options.
sql/sqlcheck/destructive/destructive.go:27
↓ 7 callersFunctionNew
New creates a new Client for the Atlas Cloud API.
cmd/atlas/internal/cloudapi/client.go:46
↓ 7 callersFunctionNewBoolColumn
NewBoolColumn creates a new BoolType column.
sql/schema/dsl.go:336
↓ 7 callersMethodOptions
Options converts the diff policy into options.
cmd/atlas/internal/cmdapi/project.go:408
↓ 7 callersFunctionParseURL
ParseURL is similar to url.Parse but returns errors without the raw URL attached to avoid printing userinfo in errors.
sql/sqlclient/client.go:272
↓ 7 callersMethodPath
Path returns the local path used for opening this dir.
sql/migrate/dir.go:126
↓ 7 callersFunctionQualifyObjects
QualifyObjects sets the Qualifier field equal to the schema name in any objects with duplicate names in the provided specs.
sql/internal/specutil/spec.go:82
↓ 7 callersFunctionRealm
Realm returns a StateReader for the static Realm object.
sql/migrate/migrate.go:170
↓ 7 callersFunctionRegisterDriverOpener
RegisterDriverOpener registers a func to create a migrate.Driver from a schema.ExecQuerier. Registering this function is implicitly done when using Dr
sql/sqlclient/client.go:415
↓ 7 callersFunctionRegisterFlavours
RegisterFlavours allows registering additional flavours (i.e. names), accepted by Atlas to open clients.
sql/sqlclient/client.go:390
↓ 7 callersMethodRollback
()
sql/sqlite/driver.go:279
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
cmd/atlas/internal/migrate/ent/revision_query.go:299
↓ 7 callersMethodSetDesc
SetDesc configures the "DESC" attribute of the key part.
sql/schema/dsl.go:788
↓ 7 callersFunctionUniqueConstraint
UniqueConstraint returns constraint with type "u".
sql/postgres/inspect.go:1236
↓ 7 callersFunctionUnquote
Unquote single or double quotes.
sql/internal/sqlx/diff.go:768
↓ 7 callersFunctionWarnOnce
WarnOnce allow writing warning messages to the given writer, but ensures only one message will be written in process run.
cmd/atlas/internal/cmdlog/cmdlog.go:1165
↓ 7 callersFunctionWithMigrations
WithMigrations copies all files from dir to the migrations directory. If dir is nil, no files are copied.
atlasexec/working_dir.go:59
↓ 7 callersFunctionWithTypes
WithTypes configures the given types as identifiers in the unmarshal context. The path controls where the usage of this type is allowed.
schemahcl/schemahcl.go:223
↓ 7 callersMethodWriteRevision
WriteRevision saves the revision to the storage.
sql/migrate/migrate.go:232
↓ 7 callersMethodappend
(c *migrate.Change)
sql/mysql/migrate.go:709
↓ 7 callersMethodapplyRealmHcl
(spec string)
internal/integration/integration_test.go:137
↓ 7 callersFunctionblockError
(name string, b *hclsyntax.Block)
cmd/atlas/internal/cmdext/cmdext.go:534
↓ 7 callersFunctioncountFiles
(t *testing.T, d migrate.Dir)
sql/migrate/migrate_test.go:794
↓ 7 callersFunctioncountFiles
(t *testing.T, p string)
cmd/atlas/internal/cmdapi/migrate_test.go:1782
↓ 7 callersFunctionevalBytes
(b []byte, v any, ev schemahcl.Evaluator)
internal/integration/integration_test.go:793
↓ 7 callersFunctionexcludeType
(t, v string)
sql/schema/exclude.go:234
↓ 7 callersFunctionidentity
(attrs []schema.Attr)
sql/postgres/diff.go:466
↓ 7 callersFunctionmigrateFlagsFromConfig
(cmd *cobra.Command)
cmd/atlas/internal/cmdapi/migrate.go:1508
↓ 7 callersFunctionmigrateSetCmd
migrateSetCmd represents the 'atlas migrate set' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:892
↓ 7 callersFunctionmigrateValidateCmd
migrateValidateCmd represents the 'atlas migrate validate' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:1163
↓ 7 callersMethodpatch
(ps schema.PosSetter, typename ...string)
sql/internal/sqlx/dev.go:272
↓ 7 callersFunctionquote
(s string)
sql/mysql/migrate.go:820
↓ 7 callersFunctionrequireFileEqual
(t *testing.T, d migrate.Dir, name, contents string)
sql/migrate/migrate_test.go:800
↓ 7 callersMethodsearch
search returns the index of the first call to f that returns true, or -1.
sql/schema/migrate.go:539
↓ 7 callersMethodtableSpan
(t *schema.Table)
sql/sqlcheck/sqlcheck.go:282
↓ 7 callersFunctiontypeName
typeName returns the type name of the given object.
sql/internal/specutil/convert.go:90
↓ 7 callersFunctionunsupportedMessage
unsupportedMessage returns a message informing the user that the command or one of its options are not supported. For example: unsupportedMessage("mi
cmd/atlas/internal/cmdapi/cmdapi.go:682
↓ 6 callersMethodAddObjects
AddObjects adds the given objects to the realm.
sql/schema/dsl.go:109
↓ 6 callersFunctionCheckChangesScope
CheckChangesScope checks that changes can be applied on a schema scope (connection).
sql/internal/sqlx/plan.go:315
↓ 6 callersMethodCheckpointFiles
CheckpointFiles returns a set of checkpoint files stored in this Dir, ordered by name.
sql/migrate/dir.go:75
↓ 6 callersMethodClearField
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
cmd/atlas/internal/migrate/ent/mutation.go:1015
↓ 6 callersMethodClose
()
sql/sqlclient/client_test.go:101
↓ 6 callersFunctionDefaultValue
DefaultValue returns the string represents the DEFAULT of a column.
sql/internal/sqlx/sqlx.go:591
↓ 6 callersMethodDirFS
DirFS returns a fs.FS for the temporary directory.
atlasexec/working_dir.go:95
↓ 6 callersMethodEval
Eval evaluates parsed HCL files using input variables into a schema.Realm.
schemahcl/schemahcl.go:286
↓ 6 callersFunctionFileStmtDecls
FileStmtDecls scans atlas-format file statements using the Driver implementation, if implemented.
sql/migrate/lex.go:60
↓ 6 callersFunctionFormatType
FormatType converts schema type to its column form in the database. An error is returned if the type cannot be recognized.
sql/mysql/convert.go:18
↓ 6 callersMethodGetType
GetType returns the value of the "type" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:210
↓ 6 callersMethodHas
Has returns if the given flag is set.
sql/migrate/migrate.go:293
↓ 6 callersMethodIndexed_column
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:4902
↓ 6 callersMethodLimit
Limit the number of records to be returned by this query.
cmd/atlas/internal/migrate/ent/revision_query.go:42
↓ 6 callersFunctionLinkSchemaTables
LinkSchemaTables links foreign-key stub tables/columns to actual elements.
sql/internal/sqlx/sqlx.go:189
↓ 6 callersMethodMapIndent
MapIndent is like MapComma, but writes a new line before each element.
sql/internal/sqlx/sqlx.go:448
↓ 6 callersMethodName
Name of the analyzer. Identifies the analyzer in configuration and linting passes.
sql/sqlcheck/sqlcheck.go:35
↓ 6 callersFunctionNewFilePos
NewFilePos creates a file position.
sql/schema/dsl.go:898
↓ 6 callersFunctionNewHashFile
NewHashFile computes and returns a HashFile from the given directory's files.
sql/migrate/dir.go:662
↓ 6 callersFunctionNewNullIntColumn
NewNullIntColumn creates a new nullable IntegerType column.
sql/schema/dsl.go:354
↓ 6 callersFunctionNewSchemaConfigContext
NewSchemaConfigContext returns a new context with the given SchemaConfig attached.
cmd/atlas/internal/migrate/ent/internal/schemaconfig.go:26
↓ 6 callersMethodOrdering_term
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:25350
↓ 6 callersFunctionOut
Out sets an io.Writer to use when running docker commands. For example: buf := new(bytes.Buffer) NewConfig(Out(buf))
cmd/atlas/internal/docker/docker.go:363
↓ 6 callersMethodPartition_by
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:27397
← previousnext →301–400 of 7,770, ranked by callers