Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ariga/atlas
/ types & classes
Types & classes
1,019 in github.com/ariga/atlas
⨍
Functions
7,770
◇
Types & classes
1,019
↓ 135 callers
FuncType
Revision
Revision is the predicate function for revision builders.
cmd/atlas/internal/migrate/ent/predicate/predicate.go:14
↓ 18 callers
FuncType
ReportWriterFunc
ReportWriterFunc is a function that implements Reporter.
sql/sqlcheck/sqlcheck.go:157
↓ 13 callers
FuncType
OpenerFunc
OpenerFunc allows using a function as an Opener.
sql/sqlclient/client.go:237
↓ 10 callers
Struct
diff
A diff provides a MySQL implementation for sqlx.DiffDriver.
sql/mysql/diff.go:25
↓ 6 callers
TypeAlias
ReferenceOption
ReferenceOption for constraint actions.
sql/schema/schema.go:351
↓ 5 callers
TypeAlias
Analyzers
Analyzers implements Analyzer.
sql/sqlcheck/sqlcheck.go:136
↓ 5 callers
FuncType
MarshalerFunc
MarshalerFunc is the function type that is implemented by the MarshalSpec method of the Marshaler interface.
schemahcl/schemahcl.go:297
↓ 5 callers
TypeAlias
ReferenceOption
ReferenceOption describes the ON DELETE and ON UPDATE options for foreign keys.
sql/postgres/inspect.go:1161
↓ 5 callers
FuncType
StateReaderFunc
The StateReaderFunc type is an adapter to allow the use of ordinary functions as state readers.
sql/migrate/migrate.go:144
↓ 4 callers
TypeAlias
Changes
Changes is a list of changes allow for searching and mutating changes.
sql/schema/migrate.go:432
↓ 4 callers
FuncType
EvalFunc
EvalFunc is an adapter that allows the use of an ordinary function as an Evaluator.
schemahcl/schemahcl.go:289
↓ 4 callers
Struct
inspect
A diff provides a MySQL implementation for schema.Inspector.
sql/mysql/inspect.go:21
↓ 3 callers
TypeAlias
RevisionType
RevisionType defines the type of the revision record in the history table.
sql/migrate/migrate.go:254
↓ 3 callers
FuncType
URLParserFunc
URLParserFunc allows using a function as an URLParser.
sql/sqlclient/client.go:245
↓ 3 callers
TypeAlias
V
V provides information about MySQL versions.
sql/mysql/internal/mysqlversion/mysqlversion.go:21
↓ 2 callers
FuncType
AnalyzerFunc
AnalyzerFunc allows using ordinary functions as analyzers.
sql/sqlcheck/sqlcheck.go:149
↓ 2 callers
FuncType
StateLoaderFunc
The StateLoaderFunc type is an adapter to allow the use of ordinary function as StateLoader.
cmd/atlas/internal/cmdext/cmdext.go:547
↓ 1 callers
Interface
Change
A Change represents a schema change. The types below implement this interface and can be used for describing schema changes. The Change interface can
sql/schema/migrate.go:28
↓ 1 callers
FuncType
CommitFunc
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(
cmd/atlas/internal/migrate/ent/tx.go:41
↓ 1 callers
FuncType
ExprFunc
ExprFunc for lazy attribute evaluation.
schemahcl/spec.go:633
↓ 1 callers
FuncType
RollbackFunc
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, Rollback
cmd/atlas/internal/migrate/ent/tx.go:97
↓ 1 callers
FuncType
closerFunc
func() error
sql/sqlclient/client_test.go:99
Struct
A
schemahcl/extension_test.go:144
Struct
AbortError
AbortError returns a command error that is formatted as "Abort: ..." when the execution is aborted by the user.
cmd/atlas/internal/cmdapi/cmdapi.go:114
Interface
Aborter
Aborter allows errors to signal if the error is an abort error.
cmd/atlas/internal/cmdapi/cmdapi.go:118
Struct
AddAttr
AddAttr describes an attribute addition.
sql/schema/migrate.go:217
Struct
AddCheck
AddCheck describes a CHECK constraint creation change.
sql/schema/migrate.go:195
Struct
AddColumn
AddColumn describes a column creation change.
sql/schema/migrate.go:115
Struct
AddForeignKey
AddForeignKey describes a foreign-key creation change.
sql/schema/migrate.go:177
Struct
AddIndex
AddIndex describes an index creation change.
sql/schema/migrate.go:137
Struct
AddObject
AddObject describes a generic object creation change.
sql/schema/migrate.go:91
Struct
AddPKConstraint
AddPKConstraint to the table using the given index. Note, if the index name does not match the primary-key constraint name, PostgreSQL implicitly rena
sql/postgres/migrate.go:466
Struct
AddPrimaryKey
AddPrimaryKey describes a primary-key creation change.
sql/schema/migrate.go:161
Struct
AddSchema
AddSchema describes a schema (named database) creation change. Unlike table creation, schemas and their elements are described with separate changes.
sql/schema/migrate.go:50
Struct
AddTable
AddTable describes a table creation change.
sql/schema/migrate.go:68
Struct
AddUniqueConstraint
AddUniqueConstraint to the table using the given index. Note, if the index name does not match the unique constraint name, PostgreSQL implicitly renam
sql/postgres/migrate.go:458
Struct
Advisory
Advisory contains contents of security advisories.
cmd/atlas/internal/cmdapi/vercheck/vercheck.go:43
FuncType
AggregateFunc
AggregateFunc applies an aggregation step on the group-by traversal/selector.
cmd/atlas/internal/migrate/ent/ent.go:111
Struct
Aggregate_funcContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:32049
Struct
Aggregate_function_invocationContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:23957
TypeAlias
Alias
cmd/atlas/internal/cmdlog/cmdlog.go:674
Struct
AliasContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31593
Struct
Alter_table_stmtContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:2709
Struct
Analyze_stmtContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:3155
Interface
Analyzer
An Analyzer describes a migration file analyzer.
sql/sqlcheck/sqlcheck.go:25
Struct
Analyzer
Analyzer checks for destructive changes.
sql/sqlcheck/destructive/destructive.go:22
Struct
Analyzer
Analyzer checks for backwards-incompatible (breaking) changes.
sql/sqlcheck/incompatible/incompatible.go:20
Struct
Analyzer
Analyzer checks data-dependent changes.
sql/sqlcheck/datadepend/datadepend.go:23
Struct
Analyzer
Analyzer checks for constraint-dropping changes.
sql/sqlcheck/condrop/condrop.go:19
Interface
Animal
schemahcl/schemahcl_test.go:241
Struct
Any_nameContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:32282
Struct
AppliedFile
AppliedFile is part of a MigrateApply containing information about an applied file in a migration attempt.
atlasexec/atlas_models.go:25
Struct
AppliedFile
AppliedFile is part of an MigrateApply containing information about an applied file in a migration attempt.
cmd/atlas/internal/cmdlog/cmdlog.go:467
Struct
ApplyError
ApplyError is an error that exposes an information for getting how any changes were applied before encountering the failure.
sql/internal/sqlx/plan.go:26
Struct
ArrayType
ArrayType defines an array type. https://postgresql.org/docs/current/arrays.html
sql/postgres/inspect.go:880
Struct
Asc_descContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:25454
Struct
AssignmentContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20771
Struct
Assignment_listContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:20591
Struct
AtlasConfig
AtlasConfig exposes non-sensitive information returned by the "atlas" init-block. By invoking AtlasInitBlock() a new config is returned that is set by
cmd/atlas/internal/cmdext/cmdext.go:70
Struct
Attach_stmtContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:3341
Interface
Attr
Attr represents the interface that all attributes implement.
sql/schema/schema.go:511
Struct
Attr
Attr is an attribute of a Resource.
schemahcl/spec.go:33
Struct
Attr
schemahcl/schemahcl_test.go:1299
Interface
Attrer
Attrer is the interface that wraps the Attr method.
sql/internal/specutil/convert.go:1024
Struct
Attrs
cmd/atlas/internal/cmdlog/cmdlog.go:819
Struct
AutoIncrement
AutoIncrement attribute for columns with "AUTO_INCREMENT" as a default. V represent an optional start value for the counter.
sql/mysql/inspect.go:797
Struct
AutoIncrement
AutoIncrement describes the `AUTOINCREMENT` configuration. https://www.sqlite.org/autoinc.html
sql/sqlite/inspect.go:383
Struct
B
schemahcl/extension_test.go:167
Struct
Backend
schemahcl/context_test.go:44
Struct
Bar
schemahcl/schemahcl_test.go:1119
Struct
BaseParserListener
BaseParserListener is a complete listener for a parse tree produced by Parser.
cmd/atlas/internal/sqlparse/sqliteparse/parser_base_listener.go:7
Struct
BaseParserVisitor
cmd/atlas/internal/sqlparse/sqliteparse/parser_base_visitor.go:6
Struct
Base_window_nameContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:31821
Struct
Begin_stmtContext
cmd/atlas/internal/sqlparse/sqliteparse/parser.go:3524
FuncType
BinaryOption
BinaryOption allows configuring BinaryType using functional options.
sql/schema/dsl.go:413
Struct
BinaryType
BinaryType represents a type that stores binary data.
sql/schema/schema.go:389
Struct
BitType
BitType defines a bit type. https://postgresql.org/docs/current/datatype-bit.html
sql/postgres/inspect.go:887
Struct
BitType
BitType represents the type bit.
sql/mysql/inspect.go:872
Struct
Block
schemahcl/schemahcl_test.go:1303
Struct
Block1
schemahcl/schemahcl_test.go:1065
Struct
Block2
schemahcl/schemahcl_test.go:1069
FuncType
BlockFunc
BlockFunc is the function signature for evaluating a dynamic block.
schemahcl/schemahcl.go:137
Struct
BoolType
BoolType represents a boolean type.
sql/schema/schema.go:402
Struct
Builder
A Builder provides a syntactic sugar API for writing SQL statements.
sql/internal/sqlx/sqlx.go:260
Struct
Car
schemahcl/context_test.go:275
Struct
Cascade
Cascade describes that a CASCADE clause should be added to the DROP [TABLE|SCHEMA] operation. Note, this clause is automatically added to DROP SCHEMA
sql/postgres/inspect.go:1156
Struct
Cast
schemahcl/schemahcl_test.go:257
Struct
Chain
Chain acts as a list of hooks and is effectively immutable. Once created, it will always hold the same set of hooks in the same order.
cmd/atlas/internal/migrate/ent/hook/hook.go:171
Struct
Change
A Change of migration.
sql/migrate/migrate.go:47
Struct
Change
A Change in a migration file.
sql/sqlcheck/sqlcheck.go:77
Interface
ChangeDepender
ChangeDepender wraps the ChangeDeps method, which returns a dependency map from each change to its dependent changes. This interface can optionally be
sql/schema/migrate.go:437
Interface
ChangeDetector
A ChangeDetector takes a migration directory and splits it into the "base" files (already merged) and new ones.
cmd/atlas/internal/migratelint/lint.go:32
TypeAlias
ChangeKind
A ChangeKind describes a change kind that can be combined using a set of flags. The zero kind is no change. go:generate stringer -type ChangeKind
sql/schema/migrate.go:244
Interface
ChangeLoader
A ChangeLoader takes a set of migration files and will create multiple schema.Changes out of it.
cmd/atlas/internal/migratelint/lint.go:38
Interface
ChangeSupporter
ChangeSupporter wraps the single SupportChange method.
sql/internal/sqlx/diff.go:105
Struct
Changes
Changes represents a list of changes that are pending or applied.
atlasexec/atlas_models.go:109
Struct
Changes
Changes represents a list of changes that are pending or applied.
cmd/atlas/internal/cmdlog/cmdlog.go:732
Struct
Changes
Changes holds schema changes information returned by the loader.
cmd/atlas/internal/migratelint/lint.go:44
Interface
ChangesAnnotator
ChangesAnnotator is an optional interface allows DiffDriver to annotate changes with additional driver-specific attributes before they are returned.
sql/internal/sqlx/diff.go:100
Struct
Charset
Charset describes a column or a table character-set setting.
sql/schema/schema.go:521
next →
1–100 of 1,019, ranked by callers