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
↓ 2 callers
Method
ValidateAttribute
(*hcl.EvalContext, *hclsyntax.Attribute, cty.Value)
schemahcl/schemahcl.go:251
↓ 2 callers
Method
Version
Version runs the 'version' command.
atlasexec/atlas.go:217
↓ 2 callers
Function
WithAllowDirty
WithAllowDirty defines if we can start working on a non-clean database in the first migration execution.
sql/migrate/migrate.go:613
↓ 2 callers
Function
WithBase
WithBase configures the git base branch name for a GitChangeDetector.
cmd/atlas/internal/migratelint/lint.go:92
↓ 2 callers
Function
WithColorFuncs
WithColorFuncs extends the given template.FuncMap with the color functions.
cmd/atlas/internal/cmdlog/cmdlog.go:52
↓ 2 callers
Function
WithFormatter
WithFormatter configures the registry to use a formatting function for printing schema.Type as string.
schemahcl/types.go:66
↓ 2 callers
Function
WithInitBlock
WithInitBlock registers a block that evaluates (first) to a cty.Value, has no labels, and can be defined only once. For example: WithInitBlock("atla
schemahcl/schemahcl.go:212
↓ 2 callers
Function
WithSchemaValidator
WithSchemaValidator registers a schema validator to be used during unmarshaling.
schemahcl/schemahcl.go:268
↓ 2 callers
Function
WithTypeLabelBlock
WithTypeLabelBlock registers a type-block and its label along with the corresponding handler. e.g., the example below registers a typed block named "d
schemahcl/schemahcl.go:186
↓ 2 callers
Method
WithWorkDir
WithWorkDir creates a new client with the given working directory. It is useful to run multiple commands in the multiple directories. Example: clie
atlasexec/atlas.go:150
↓ 2 callers
Method
Write
(p []byte)
cmd/atlas/internal/cmdlog/cmdlog_test.go:867
↓ 2 callers
Function
acquireLock
(path string, timeout time.Duration)
sql/sqlite/driver.go:227
↓ 2 callers
Function
add
(a, b int)
cmd/atlas/internal/cmdlog/cmdlog.go:1144
↓ 2 callers
Method
addChild
(blk *hclsyntax.Block, depth int)
schemahcl/context.go:442
↓ 2 callers
Function
addFlagAutoApprove
(set *pflag.FlagSet, target *bool)
cmd/atlas/internal/cmdapi/cmdapi.go:316
↓ 2 callers
Function
addFlagInclude
(set *pflag.FlagSet, target *[]string)
cmd/atlas/internal/cmdapi/cmdapi.go:366
↓ 2 callers
Function
addGlobalFlags
(set *pflag.FlagSet)
cmd/atlas/internal/cmdapi/cmdapi.go:310
↓ 2 callers
Method
addTable
addTable builds and executes the query for creating a table in a schema.
sql/postgres/migrate.go:186
↓ 2 callers
Method
addTable
addTable builds and appends a migration change for creating a table in a schema.
sql/mysql/migrate.go:218
↓ 2 callers
Function
added
(line, total, pos int, file string)
sql/migrate/dir_test.go:664
↓ 2 callers
Method
append
(s *state)
sql/postgres/migrate.go:640
↓ 2 callers
Function
append2Tar
(tw *tar.Writer, name string, data []byte)
sql/migrate/dir.go:1019
↓ 2 callers
Method
as
As reads the attributes and children resources of the resource into the target struct.
schemahcl/extension.go:103
↓ 2 callers
Function
attrVal
(attrs []*Attr, name string)
schemahcl/spec.go:478
↓ 2 callers
Function
backupEnv
backupEnv backs up the current value of an environment variable and returns a function to restore it.
cmd/atlas/internal/cmdext/cmdext_test.go:411
↓ 2 callers
Function
binValue
binValue returns the MySQL binary value from the given string (if it is known).
sql/mysql/diff.go:664
↓ 2 callers
Function
boolValue
boolValue returns the MySQL boolean value from the given string (if it is known).
sql/mysql/diff.go:652
↓ 2 callers
Method
charsetChange
charsetChange returns the schema change for migrating the collation if it was changed, and it is not the default attribute inherited from its parent.
sql/mysql/diff.go:379
↓ 2 callers
Method
check
check runs all checks and user-defined validators on the builder.
cmd/atlas/internal/migrate/ent/revision_create.go:193
↓ 2 callers
Method
checkpoint
(ctx context.Context, name string, realmScope bool)
sql/migrate/migrate.go:467
↓ 2 callers
Function
checkpointFiles
checkpointFiles returns all checkpoint files in a migration directory.
sql/migrate/dir.go:890
↓ 2 callers
Method
child
(typ string)
schemahcl/context.go:435
↓ 2 callers
Method
cmd
(ctx context.Context, args []string)
atlasexec/atlas.go:348
↓ 2 callers
Method
collationChange
collationChange returns the schema change for migrating the collation if it was changed, and it is not the default attribute inherited from its parent
sql/mysql/diff.go:308
↓ 2 callers
Method
column
(b *sqlx.Builder, c *schema.Column)
sql/sqlite/migrate.go:237
↓ 2 callers
Method
columnDefault
columnDefault writes the default value of column to the builder.
sql/postgres/migrate.go:1005
↓ 2 callers
Function
columnType
(c *columnDesc)
sql/postgres/convert.go:220
↓ 2 callers
Method
comments
()
sql/migrate/dir.go:331
↓ 2 callers
Method
commit
commit the transaction, if one is active.
cmd/atlas/internal/cmdapi/migrate.go:1388
↓ 2 callers
Method
compositeIdent
(c *CompositeType)
sql/postgres/migrate.go:1302
↓ 2 callers
Function
computeDiff
(ctx context.Context, differ *sqlclient.Client, from, to *cmdext.StateReadCloser, opts ...schema.DiffOption)
cmd/atlas/internal/cmdapi/schema.go:447
↓ 2 callers
Method
constraint
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1152
↓ 2 callers
Function
convertAggregate
(d *doc, _ *schema.Realm)
sql/postgres/driver.go:717
↓ 2 callers
Function
convertIndex
convertIndex converts a sqlspec.Index into a schema.Index.
sql/mysql/sqlspec.go:177
↓ 2 callers
Function
convertIndexPK
convertIndexPK converts the index parameters shared between primary and secondary indexes.
sql/postgres/sqlspec.go:591
↓ 2 callers
Function
convertPolicies
(_ []*sqlspec.Table, ps []*policy, _ *schema.Realm)
sql/postgres/driver.go:731
↓ 2 callers
Function
convertSequences
(_ []*sqlspec.Table, seqs []*sqlspec.Sequence, _ *schema.Realm)
sql/postgres/driver.go:724
↓ 2 callers
Function
convertTypes
convertEnums converts possibly referenced column types (like enums) to an actual schema.Type and sets it on the correct schema.Column.
sql/postgres/driver.go:772
↓ 2 callers
Function
copyFile
(src, dst string)
cmd/atlas/internal/cmdapi/migrate_test.go:1759
↓ 2 callers
Method
createDropEnum
(e *schema.EnumType)
sql/postgres/migrate.go:1281
↓ 2 callers
Method
createSpec
()
cmd/atlas/internal/migrate/ent/revision_create.go:254
↓ 2 callers
Method
createStmt
createStmt loads the CREATE TABLE statement for the table.
sql/mysql/inspect.go:533
↓ 2 callers
Method
current
current returns the current realm state.
sql/migrate/migrate.go:499
↓ 2 callers
Method
databases
schemas returns the list of the schemas in the database.
sql/sqlite/inspect.go:333
↓ 2 callers
Function
decode
(name string)
sql/mysql/internal/mysqlversion/mysqlversion.go:182
↓ 2 callers
Method
defaultCharset
defaultCharset appends the default CHARSET to the attributes in case a custom collation was defined for the element and the CHARSET was not.
sql/mysql/diff.go:718
↓ 2 callers
Method
defaultCollate
defaultCollate appends the default COLLATE to the attributes in case a custom character-set was defined for the element and the COLLATE was not.
sql/mysql/diff.go:698
↓ 2 callers
Function
defaultValue
(c *schema.Column)
sql/sqlite/migrate.go:594
↓ 2 callers
Method
defaults
defaults sets the default values of the builder before save.
cmd/atlas/internal/migrate/ent/revision_create.go:177
↓ 2 callers
Function
depOfAdd
depOfAdd checks if the given change is a creation of a resource exists in the given list.
sql/internal/sqlx/plan.go:506
↓ 2 callers
Method
dev
()
sql/postgres/driver.go:131
↓ 2 callers
Method
dev
()
internal/integration/sqlite_test.go:941
↓ 2 callers
Method
domainIdent
(d *DomainType)
sql/postgres/migrate.go:1298
↓ 2 callers
Function
dropConst
dropConst indicates if the given change is a constraint drop.
sql/postgres/migrate.go:1365
↓ 2 callers
Method
dropIndexes
(t *schema.Table, indexes ...*schema.Index)
sql/sqlite/migrate.go:267
↓ 2 callers
Method
emit
(text string)
sql/migrate/lex.go:469
↓ 2 callers
Function
enforced
enforced returns the ENFORCED attribute for the CHECK constraint. A CHECK is ENFORCED if not state otherwise.
sql/mysql/diff.go:480
↓ 2 callers
Function
excludeObjects
(all []Object, glob []string)
sql/schema/exclude.go:188
↓ 2 callers
Function
fileNames
(r io.Reader)
sql/migrate/dir_test.go:644
↓ 2 callers
Function
filesFromCheckpoint
filesFromCheckpoint returns all files from the given checkpoint to be executed on the database, including the checkpoint file.
sql/migrate/dir.go:906
↓ 2 callers
Method
findName
findName searches the registry for types that have the provided name.
schemahcl/types.go:154
↓ 2 callers
Method
findTable
(s *schema.Schema, t1 *schema.Table)
sql/internal/sqlx/diff.go:523
↓ 2 callers
Function
fixFileURLs
fixFileURLs converts all file paths to a URL format, if not already. For example, "schema.hcl" to "file://schema.hcl".
cmd/atlas/internal/cmdapi/schema.go:581
↓ 2 callers
Method
fks
(b *sqlx.Builder, fks ...*schema.ForeignKey)
sql/postgres/migrate.go:1125
↓ 2 callers
Method
fks
(commaF func(any, func(int, *sqlx.Builder) error) error, fks ...*schema.ForeignKey)
sql/mysql/migrate.go:624
↓ 2 callers
Function
flywaySort
(files []string)
sql/sqltool/tool.go:556
↓ 2 callers
Function
fmtPlan
(ctx context.Context, client *sqlclient.Client, changes schema.Changes, indent []string, edit ...func(*migrate
cmd/atlas/internal/cmdlog/cmdlog.go:1003
↓ 2 callers
Function
formatValues
formatValues formats ENUM and SET values.
sql/mysql/convert.go:261
↓ 2 callers
Method
hasIndex
(idx *Index)
sql/schema/dsl.go:749
↓ 2 callers
Function
hasNumericDefault
hasNumericDefault reports if the given type has a numeric default value.
sql/mysql/inspect.go:607
↓ 2 callers
Method
hclDriftTest
(n string, realm *schema.Realm, expected schema.Table)
internal/integration/mysql_test.go:1532
↓ 2 callers
Function
hookCtx
hookCtx marks the context as being in a hook.
sql/sqlclient/client.go:157
↓ 2 callers
Function
identComma
(c []string)
sql/sqlite/migrate.go:610
↓ 2 callers
Method
implementers
implementers returns a slice of the names of the extensions that implement i.
schemahcl/extension.go:64
↓ 2 callers
Function
index
(b *sqlx.Builder, idx *schema.Index)
sql/mysql/migrate.go:581
↓ 2 callers
Method
indexChange
indexChange returns the schema changes (if any) for migrating one index to the other.
sql/internal/sqlx/diff.go:426
↓ 2 callers
Function
indexNullsDistinct
indexNullsDistinct returns the NULLS [NOT] DISTINCT value from the index attributes.
sql/postgres/diff.go:542
↓ 2 callers
Function
indexPKSpec
(idx *schema.Index, attrs []*schemahcl.Attr)
sql/postgres/sqlspec.go:794
↓ 2 callers
Method
indexParts
(b *sqlx.Builder, parts []*schema.IndexPart)
sql/sqlite/migrate.go:335
↓ 2 callers
Function
indirect
indirect returns the type at the end of indirection.
schemahcl/extension.go:702
↓ 2 callers
Method
init
()
cmd/atlas/internal/migrate/ent/tx.go:153
↓ 2 callers
Method
inspectEnums
enumValues fills enum columns with their values from the database.
sql/postgres/inspect.go:377
↓ 2 callers
Method
inspectTable
(ctx context.Context, t *schema.Table)
sql/sqlite/inspect.go:24
↓ 2 callers
Method
inspectTables
(ctx context.Context, r *schema.Realm, opts *schema.InspectOptions)
sql/postgres/inspect.go:134
↓ 2 callers
Method
inspectTables
(ctx context.Context, r *schema.Realm, opts *schema.InspectOptions)
sql/mysql/inspect.go:78
↓ 2 callers
Function
isAddT
(c schema.Change, prefix string)
sql/sqlite/sqlitecheck/sqlitecheck.go:147
↓ 2 callers
Function
isDropT
(c schema.Change, name string)
sql/sqlite/sqlitecheck/sqlitecheck.go:152
↓ 2 callers
Function
isDropped
isDropped checks if the given table is marked as a deleted in the changeset.
sql/internal/sqlx/plan.go:304
↓ 2 callers
Method
isQualifier
()
schemahcl/extension.go:630
↓ 2 callers
Function
isResourceSlice
(t reflect.Type)
schemahcl/extension.go:684
← previous
next →
1,001–1,100 of 7,770, ranked by callers