MCPcopy Create free account

hub / github.com/ariga/atlas / functions

Functions7,770 in github.com/ariga/atlas

↓ 2 callersMethodValidateAttribute
(*hcl.EvalContext, *hclsyntax.Attribute, cty.Value)
schemahcl/schemahcl.go:251
↓ 2 callersMethodVersion
Version runs the 'version' command.
atlasexec/atlas.go:217
↓ 2 callersFunctionWithAllowDirty
WithAllowDirty defines if we can start working on a non-clean database in the first migration execution.
sql/migrate/migrate.go:613
↓ 2 callersFunctionWithBase
WithBase configures the git base branch name for a GitChangeDetector.
cmd/atlas/internal/migratelint/lint.go:92
↓ 2 callersFunctionWithColorFuncs
WithColorFuncs extends the given template.FuncMap with the color functions.
cmd/atlas/internal/cmdlog/cmdlog.go:52
↓ 2 callersFunctionWithFormatter
WithFormatter configures the registry to use a formatting function for printing schema.Type as string.
schemahcl/types.go:66
↓ 2 callersFunctionWithInitBlock
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 callersFunctionWithSchemaValidator
WithSchemaValidator registers a schema validator to be used during unmarshaling.
schemahcl/schemahcl.go:268
↓ 2 callersFunctionWithTypeLabelBlock
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 callersMethodWithWorkDir
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 callersMethodWrite
(p []byte)
cmd/atlas/internal/cmdlog/cmdlog_test.go:867
↓ 2 callersFunctionacquireLock
(path string, timeout time.Duration)
sql/sqlite/driver.go:227
↓ 2 callersFunctionadd
(a, b int)
cmd/atlas/internal/cmdlog/cmdlog.go:1144
↓ 2 callersMethodaddChild
(blk *hclsyntax.Block, depth int)
schemahcl/context.go:442
↓ 2 callersFunctionaddFlagAutoApprove
(set *pflag.FlagSet, target *bool)
cmd/atlas/internal/cmdapi/cmdapi.go:316
↓ 2 callersFunctionaddFlagInclude
(set *pflag.FlagSet, target *[]string)
cmd/atlas/internal/cmdapi/cmdapi.go:366
↓ 2 callersFunctionaddGlobalFlags
(set *pflag.FlagSet)
cmd/atlas/internal/cmdapi/cmdapi.go:310
↓ 2 callersMethodaddTable
addTable builds and executes the query for creating a table in a schema.
sql/postgres/migrate.go:186
↓ 2 callersMethodaddTable
addTable builds and appends a migration change for creating a table in a schema.
sql/mysql/migrate.go:218
↓ 2 callersFunctionadded
(line, total, pos int, file string)
sql/migrate/dir_test.go:664
↓ 2 callersMethodappend
(s *state)
sql/postgres/migrate.go:640
↓ 2 callersFunctionappend2Tar
(tw *tar.Writer, name string, data []byte)
sql/migrate/dir.go:1019
↓ 2 callersMethodas
As reads the attributes and children resources of the resource into the target struct.
schemahcl/extension.go:103
↓ 2 callersFunctionattrVal
(attrs []*Attr, name string)
schemahcl/spec.go:478
↓ 2 callersFunctionbackupEnv
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 callersFunctionbinValue
binValue returns the MySQL binary value from the given string (if it is known).
sql/mysql/diff.go:664
↓ 2 callersFunctionboolValue
boolValue returns the MySQL boolean value from the given string (if it is known).
sql/mysql/diff.go:652
↓ 2 callersMethodcharsetChange
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 callersMethodcheck
check runs all checks and user-defined validators on the builder.
cmd/atlas/internal/migrate/ent/revision_create.go:193
↓ 2 callersMethodcheckpoint
(ctx context.Context, name string, realmScope bool)
sql/migrate/migrate.go:467
↓ 2 callersFunctioncheckpointFiles
checkpointFiles returns all checkpoint files in a migration directory.
sql/migrate/dir.go:890
↓ 2 callersMethodchild
(typ string)
schemahcl/context.go:435
↓ 2 callersMethodcmd
(ctx context.Context, args []string)
atlasexec/atlas.go:348
↓ 2 callersMethodcollationChange
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 callersMethodcolumn
(b *sqlx.Builder, c *schema.Column)
sql/sqlite/migrate.go:237
↓ 2 callersMethodcolumnDefault
columnDefault writes the default value of column to the builder.
sql/postgres/migrate.go:1005
↓ 2 callersFunctioncolumnType
(c *columnDesc)
sql/postgres/convert.go:220
↓ 2 callersMethodcomments
()
sql/migrate/dir.go:331
↓ 2 callersMethodcommit
commit the transaction, if one is active.
cmd/atlas/internal/cmdapi/migrate.go:1388
↓ 2 callersMethodcompositeIdent
(c *CompositeType)
sql/postgres/migrate.go:1302
↓ 2 callersFunctioncomputeDiff
(ctx context.Context, differ *sqlclient.Client, from, to *cmdext.StateReadCloser, opts ...schema.DiffOption)
cmd/atlas/internal/cmdapi/schema.go:447
↓ 2 callersMethodconstraint
(b *sqlx.Builder, idx *schema.Index)
sql/postgres/migrate.go:1152
↓ 2 callersFunctionconvertAggregate
(d *doc, _ *schema.Realm)
sql/postgres/driver.go:717
↓ 2 callersFunctionconvertIndex
convertIndex converts a sqlspec.Index into a schema.Index.
sql/mysql/sqlspec.go:177
↓ 2 callersFunctionconvertIndexPK
convertIndexPK converts the index parameters shared between primary and secondary indexes.
sql/postgres/sqlspec.go:591
↓ 2 callersFunctionconvertPolicies
(_ []*sqlspec.Table, ps []*policy, _ *schema.Realm)
sql/postgres/driver.go:731
↓ 2 callersFunctionconvertSequences
(_ []*sqlspec.Table, seqs []*sqlspec.Sequence, _ *schema.Realm)
sql/postgres/driver.go:724
↓ 2 callersFunctionconvertTypes
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 callersFunctioncopyFile
(src, dst string)
cmd/atlas/internal/cmdapi/migrate_test.go:1759
↓ 2 callersMethodcreateDropEnum
(e *schema.EnumType)
sql/postgres/migrate.go:1281
↓ 2 callersMethodcreateSpec
()
cmd/atlas/internal/migrate/ent/revision_create.go:254
↓ 2 callersMethodcreateStmt
createStmt loads the CREATE TABLE statement for the table.
sql/mysql/inspect.go:533
↓ 2 callersMethodcurrent
current returns the current realm state.
sql/migrate/migrate.go:499
↓ 2 callersMethoddatabases
schemas returns the list of the schemas in the database.
sql/sqlite/inspect.go:333
↓ 2 callersFunctiondecode
(name string)
sql/mysql/internal/mysqlversion/mysqlversion.go:182
↓ 2 callersMethoddefaultCharset
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 callersMethoddefaultCollate
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 callersFunctiondefaultValue
(c *schema.Column)
sql/sqlite/migrate.go:594
↓ 2 callersMethoddefaults
defaults sets the default values of the builder before save.
cmd/atlas/internal/migrate/ent/revision_create.go:177
↓ 2 callersFunctiondepOfAdd
depOfAdd checks if the given change is a creation of a resource exists in the given list.
sql/internal/sqlx/plan.go:506
↓ 2 callersMethoddev
()
sql/postgres/driver.go:131
↓ 2 callersMethoddev
()
internal/integration/sqlite_test.go:941
↓ 2 callersMethoddomainIdent
(d *DomainType)
sql/postgres/migrate.go:1298
↓ 2 callersFunctiondropConst
dropConst indicates if the given change is a constraint drop.
sql/postgres/migrate.go:1365
↓ 2 callersMethoddropIndexes
(t *schema.Table, indexes ...*schema.Index)
sql/sqlite/migrate.go:267
↓ 2 callersMethodemit
(text string)
sql/migrate/lex.go:469
↓ 2 callersFunctionenforced
enforced returns the ENFORCED attribute for the CHECK constraint. A CHECK is ENFORCED if not state otherwise.
sql/mysql/diff.go:480
↓ 2 callersFunctionexcludeObjects
(all []Object, glob []string)
sql/schema/exclude.go:188
↓ 2 callersFunctionfileNames
(r io.Reader)
sql/migrate/dir_test.go:644
↓ 2 callersFunctionfilesFromCheckpoint
filesFromCheckpoint returns all files from the given checkpoint to be executed on the database, including the checkpoint file.
sql/migrate/dir.go:906
↓ 2 callersMethodfindName
findName searches the registry for types that have the provided name.
schemahcl/types.go:154
↓ 2 callersMethodfindTable
(s *schema.Schema, t1 *schema.Table)
sql/internal/sqlx/diff.go:523
↓ 2 callersFunctionfixFileURLs
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 callersMethodfks
(b *sqlx.Builder, fks ...*schema.ForeignKey)
sql/postgres/migrate.go:1125
↓ 2 callersMethodfks
(commaF func(any, func(int, *sqlx.Builder) error) error, fks ...*schema.ForeignKey)
sql/mysql/migrate.go:624
↓ 2 callersFunctionflywaySort
(files []string)
sql/sqltool/tool.go:556
↓ 2 callersFunctionfmtPlan
(ctx context.Context, client *sqlclient.Client, changes schema.Changes, indent []string, edit ...func(*migrate
cmd/atlas/internal/cmdlog/cmdlog.go:1003
↓ 2 callersFunctionformatValues
formatValues formats ENUM and SET values.
sql/mysql/convert.go:261
↓ 2 callersMethodhasIndex
(idx *Index)
sql/schema/dsl.go:749
↓ 2 callersFunctionhasNumericDefault
hasNumericDefault reports if the given type has a numeric default value.
sql/mysql/inspect.go:607
↓ 2 callersMethodhclDriftTest
(n string, realm *schema.Realm, expected schema.Table)
internal/integration/mysql_test.go:1532
↓ 2 callersFunctionhookCtx
hookCtx marks the context as being in a hook.
sql/sqlclient/client.go:157
↓ 2 callersFunctionidentComma
(c []string)
sql/sqlite/migrate.go:610
↓ 2 callersMethodimplementers
implementers returns a slice of the names of the extensions that implement i.
schemahcl/extension.go:64
↓ 2 callersFunctionindex
(b *sqlx.Builder, idx *schema.Index)
sql/mysql/migrate.go:581
↓ 2 callersMethodindexChange
indexChange returns the schema changes (if any) for migrating one index to the other.
sql/internal/sqlx/diff.go:426
↓ 2 callersFunctionindexNullsDistinct
indexNullsDistinct returns the NULLS [NOT] DISTINCT value from the index attributes.
sql/postgres/diff.go:542
↓ 2 callersFunctionindexPKSpec
(idx *schema.Index, attrs []*schemahcl.Attr)
sql/postgres/sqlspec.go:794
↓ 2 callersMethodindexParts
(b *sqlx.Builder, parts []*schema.IndexPart)
sql/sqlite/migrate.go:335
↓ 2 callersFunctionindirect
indirect returns the type at the end of indirection.
schemahcl/extension.go:702
↓ 2 callersMethodinit
()
cmd/atlas/internal/migrate/ent/tx.go:153
↓ 2 callersMethodinspectEnums
enumValues fills enum columns with their values from the database.
sql/postgres/inspect.go:377
↓ 2 callersMethodinspectTable
(ctx context.Context, t *schema.Table)
sql/sqlite/inspect.go:24
↓ 2 callersMethodinspectTables
(ctx context.Context, r *schema.Realm, opts *schema.InspectOptions)
sql/postgres/inspect.go:134
↓ 2 callersMethodinspectTables
(ctx context.Context, r *schema.Realm, opts *schema.InspectOptions)
sql/mysql/inspect.go:78
↓ 2 callersFunctionisAddT
(c schema.Change, prefix string)
sql/sqlite/sqlitecheck/sqlitecheck.go:147
↓ 2 callersFunctionisDropT
(c schema.Change, name string)
sql/sqlite/sqlitecheck/sqlitecheck.go:152
↓ 2 callersFunctionisDropped
isDropped checks if the given table is marked as a deleted in the changeset.
sql/internal/sqlx/plan.go:304
↓ 2 callersMethodisQualifier
()
schemahcl/extension.go:630
↓ 2 callersFunctionisResourceSlice
(t reflect.Type)
schemahcl/extension.go:684
← previousnext →1,001–1,100 of 7,770, ranked by callers