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
↓ 8 callers
Method
Ident
Ident writes the given string quoted as an SQL identifier.
sql/internal/sqlx/sqlx.go:293
↓ 8 callers
Function
Image
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 callers
Method
Is
Is reports whether m is match the given mode.
sql/migrate/migrate.go:162
↓ 8 callers
Method
IsCheckpoint
IsCheckpoint returns true if the file is a checkpoint file.
sql/migrate/dir.go:88
↓ 8 callers
Function
IsNotFound
IsNotFound returns a boolean indicating whether the error is a not found error.
cmd/atlas/internal/migrate/ent/ent.go:211
↓ 8 callers
Function
IsUint
IsUint reports whether the string represents an unsigned integer.
sql/internal/sqlx/sqlx.go:675
↓ 8 callers
Method
MigrateLint
MigrateLint runs the 'migrate lint' command.
atlasexec/atlas_migrate.go:548
↓ 8 callers
Function
New
New creates a new data-dependent analyzer with the given options.
sql/sqlcheck/datadepend/datadepend.go:53
↓ 8 callers
Function
NewSchemaInspect
NewSchemaInspect returns a SchemaInspect.
cmd/atlas/internal/cmdlog/cmdlog.go:788
↓ 8 callers
Method
ParseURL
(*url.URL)
sql/sqlclient/client.go:241
↓ 8 callers
Method
Path
()
sql/sqltool/tool.go:627
↓ 8 callers
Method
Read
Read reads the value from the file system.
cmd/atlas/internal/cmdstate/cmdstate.go:30
↓ 8 callers
Method
Scan
Scan implements sql.Scanner interface.
sql/postgres/inspect.go:1207
↓ 8 callers
Method
Signed_number
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:6765
↓ 8 callers
Method
Snapshot
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 callers
Method
WriteReport
(*SummaryReport)
cmd/atlas/internal/migratelint/lint.go:849
↓ 8 callers
Function
addFlagDirFormat
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:320
↓ 8 callers
Function
addFlagFormat
(set *pflag.FlagSet, target *string)
cmd/atlas/internal/cmdapi/cmdapi.go:382
↓ 8 callers
Function
del
del searches an attribute of the same type as v in the list and deletes it.
sql/schema/dsl.go:918
↓ 8 callers
Function
dirFormatBC
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 callers
Function
flywayVersion
(path string)
sql/sqltool/tool.go:548
↓ 8 callers
Function
join
(lines ...string)
sql/mysql/migrate_test.go:1414
↓ 8 callers
Method
quoted
(s string)
internal/integration/mysql_test.go:1468
↓ 8 callers
Method
rewriteLastByte
(c byte)
sql/internal/sqlx/sqlx.go:538
↓ 8 callers
Function
selectEnv
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 callers
Function
storedOrVirtual
storedOrVirtual returns a STORED or VIRTUAL generated type option based on the given string.
sql/mysql/sqlspec.go:401
↓ 7 callers
Function
AbortErrorf
AbortErrorf is like fmt.Errorf for creating AbortError.
cmd/atlas/internal/cmdapi/cmdapi.go:134
↓ 7 callers
Method
AddChecks
AddChecks appends the given checks to the attribute list.
sql/schema/dsl.go:202
↓ 7 callers
Function
AnalyzerFor
AnalyzerFor instantiates a new Analyzer from the given HCL resource based on the registered constructor function.
sql/sqlcheck/sqlcheck.go:317
↓ 7 callers
Function
AppendPos
AppendPos appends the range to the attributes.
schemahcl/spec.go:683
↓ 7 callers
Method
CheckClean
CheckClean implements migrate.CleanChecker.
sql/mysql/driver.go:221
↓ 7 callers
Function
ColumnRef
ColumnRef returns the reference of a column by its name.
sql/internal/specutil/convert.go:987
↓ 7 callers
Method
Convert
Convert converts the schema.Type to a *schemahcl.Type.
schemahcl/types.go:174
↓ 7 callers
Method
Copy
Copy returns a copy of the current variables.
cmd/atlas/internal/cmdapi/cmdapi.go:229
↓ 7 callers
Method
DetectChanges
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 callers
Method
Dialect
Dialect returns the "ent dialect" of the Ent client.
cmd/atlas/internal/migrate/migrate.go:58
↓ 7 callers
Method
Directive
Directive returns all directive comments with the given name. See: pkg.go.dev/cmd/compile#hdr-Compiler_Directives.
sql/migrate/lex.go:28
↓ 7 callers
Method
Error
Error implements the error interface.
atlasexec/atlas_migrate.go:809
↓ 7 callers
Method
Error
Error implements the error interface.
atlasexec/atlas_schema.go:870
↓ 7 callers
Function
New
New creates a new destructive changes Analyzer with the given options.
sql/sqlcheck/destructive/destructive.go:27
↓ 7 callers
Function
New
New creates a new Client for the Atlas Cloud API.
cmd/atlas/internal/cloudapi/client.go:46
↓ 7 callers
Function
NewBoolColumn
NewBoolColumn creates a new BoolType column.
sql/schema/dsl.go:336
↓ 7 callers
Method
Options
Options converts the diff policy into options.
cmd/atlas/internal/cmdapi/project.go:408
↓ 7 callers
Function
ParseURL
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 callers
Method
Path
Path returns the local path used for opening this dir.
sql/migrate/dir.go:126
↓ 7 callers
Function
QualifyObjects
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 callers
Function
Realm
Realm returns a StateReader for the static Realm object.
sql/migrate/migrate.go:170
↓ 7 callers
Function
RegisterDriverOpener
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 callers
Function
RegisterFlavours
RegisterFlavours allows registering additional flavours (i.e. names), accepted by Atlas to open clients.
sql/sqlclient/client.go:390
↓ 7 callers
Method
Rollback
()
sql/sqlite/driver.go:279
↓ 7 callers
Method
Select
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 callers
Method
SetDesc
SetDesc configures the "DESC" attribute of the key part.
sql/schema/dsl.go:788
↓ 7 callers
Function
UniqueConstraint
UniqueConstraint returns constraint with type "u".
sql/postgres/inspect.go:1236
↓ 7 callers
Function
Unquote
Unquote single or double quotes.
sql/internal/sqlx/diff.go:768
↓ 7 callers
Function
WarnOnce
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 callers
Function
WithMigrations
WithMigrations copies all files from dir to the migrations directory. If dir is nil, no files are copied.
atlasexec/working_dir.go:59
↓ 7 callers
Function
WithTypes
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 callers
Method
WriteRevision
WriteRevision saves the revision to the storage.
sql/migrate/migrate.go:232
↓ 7 callers
Method
append
(c *migrate.Change)
sql/mysql/migrate.go:709
↓ 7 callers
Method
applyRealmHcl
(spec string)
internal/integration/integration_test.go:137
↓ 7 callers
Function
blockError
(name string, b *hclsyntax.Block)
cmd/atlas/internal/cmdext/cmdext.go:534
↓ 7 callers
Function
countFiles
(t *testing.T, d migrate.Dir)
sql/migrate/migrate_test.go:794
↓ 7 callers
Function
countFiles
(t *testing.T, p string)
cmd/atlas/internal/cmdapi/migrate_test.go:1782
↓ 7 callers
Function
evalBytes
(b []byte, v any, ev schemahcl.Evaluator)
internal/integration/integration_test.go:793
↓ 7 callers
Function
excludeType
(t, v string)
sql/schema/exclude.go:234
↓ 7 callers
Function
identity
(attrs []schema.Attr)
sql/postgres/diff.go:466
↓ 7 callers
Function
migrateFlagsFromConfig
(cmd *cobra.Command)
cmd/atlas/internal/cmdapi/migrate.go:1508
↓ 7 callers
Function
migrateSetCmd
migrateSetCmd represents the 'atlas migrate set' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:892
↓ 7 callers
Function
migrateValidateCmd
migrateValidateCmd represents the 'atlas migrate validate' subcommand.
cmd/atlas/internal/cmdapi/migrate.go:1163
↓ 7 callers
Method
patch
(ps schema.PosSetter, typename ...string)
sql/internal/sqlx/dev.go:272
↓ 7 callers
Function
quote
(s string)
sql/mysql/migrate.go:820
↓ 7 callers
Function
requireFileEqual
(t *testing.T, d migrate.Dir, name, contents string)
sql/migrate/migrate_test.go:800
↓ 7 callers
Method
search
search returns the index of the first call to f that returns true, or -1.
sql/schema/migrate.go:539
↓ 7 callers
Method
tableSpan
(t *schema.Table)
sql/sqlcheck/sqlcheck.go:282
↓ 7 callers
Function
typeName
typeName returns the type name of the given object.
sql/internal/specutil/convert.go:90
↓ 7 callers
Function
unsupportedMessage
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 callers
Method
AddObjects
AddObjects adds the given objects to the realm.
sql/schema/dsl.go:109
↓ 6 callers
Function
CheckChangesScope
CheckChangesScope checks that changes can be applied on a schema scope (connection).
sql/internal/sqlx/plan.go:315
↓ 6 callers
Method
CheckpointFiles
CheckpointFiles returns a set of checkpoint files stored in this Dir, ordered by name.
sql/migrate/dir.go:75
↓ 6 callers
Method
ClearField
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 callers
Method
Close
()
sql/sqlclient/client_test.go:101
↓ 6 callers
Function
DefaultValue
DefaultValue returns the string represents the DEFAULT of a column.
sql/internal/sqlx/sqlx.go:591
↓ 6 callers
Method
DirFS
DirFS returns a fs.FS for the temporary directory.
atlasexec/working_dir.go:95
↓ 6 callers
Method
Eval
Eval evaluates parsed HCL files using input variables into a schema.Realm.
schemahcl/schemahcl.go:286
↓ 6 callers
Function
FileStmtDecls
FileStmtDecls scans atlas-format file statements using the Driver implementation, if implemented.
sql/migrate/lex.go:60
↓ 6 callers
Function
FormatType
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 callers
Method
GetType
GetType returns the value of the "type" field in the mutation.
cmd/atlas/internal/migrate/ent/mutation.go:210
↓ 6 callers
Method
Has
Has returns if the given flag is set.
sql/migrate/migrate.go:293
↓ 6 callers
Method
Indexed_column
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:4902
↓ 6 callers
Method
Limit
Limit the number of records to be returned by this query.
cmd/atlas/internal/migrate/ent/revision_query.go:42
↓ 6 callers
Function
LinkSchemaTables
LinkSchemaTables links foreign-key stub tables/columns to actual elements.
sql/internal/sqlx/sqlx.go:189
↓ 6 callers
Method
MapIndent
MapIndent is like MapComma, but writes a new line before each element.
sql/internal/sqlx/sqlx.go:448
↓ 6 callers
Method
Name
Name of the analyzer. Identifies the analyzer in configuration and linting passes.
sql/sqlcheck/sqlcheck.go:35
↓ 6 callers
Function
NewFilePos
NewFilePos creates a file position.
sql/schema/dsl.go:898
↓ 6 callers
Function
NewHashFile
NewHashFile computes and returns a HashFile from the given directory's files.
sql/migrate/dir.go:662
↓ 6 callers
Function
NewNullIntColumn
NewNullIntColumn creates a new nullable IntegerType column.
sql/schema/dsl.go:354
↓ 6 callers
Function
NewSchemaConfigContext
NewSchemaConfigContext returns a new context with the given SchemaConfig attached.
cmd/atlas/internal/migrate/ent/internal/schemaconfig.go:26
↓ 6 callers
Method
Ordering_term
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:25350
↓ 6 callers
Function
Out
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 callers
Method
Partition_by
()
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:27397
← previous
next →
301–400 of 7,770, ranked by callers