Versions in this module Expand all Collapse all v0 v0.1.0 Jul 6, 2026 Changes in this version + const DriverName + const TypeBlob + const TypeInteger + const TypeReal + const TypeText + var DefaultDiff schema.Differ = &sqlx.Diff + var DefaultPlan migrate.PlanApplier = &planApply + var EvalHCL = schemahcl.EvalFunc(codec.Eval) + var EvalHCLBytes = specutil.HCLBytesFunc(EvalHCL) + var MarshalHCL = schemahcl.MarshalerFunc(codec.MarshalSpec) + var TypeRegistry = schemahcl.NewRegistry(schemahcl.WithFormatter(FormatType), schemahcl.WithParser(ParseType), ...) + func CommitFunc(ctx context.Context, db schema.ExecQuerier, tx Tx, on bool) (func() error, error) + func FormatType(t schema.Type) (string, error) + func Open(db schema.ExecQuerier) (migrate.Driver, error) + func OpenTx(ctx context.Context, db *sql.DB, opts *sql.TxOptions) (*sqlclient.Tx, error) + func ParseType(c string) (schema.Type, error) + func RollbackFunc(ctx context.Context, db schema.ExecQuerier, tx Tx, on bool) func() error + type AutoIncrement struct + Seq int64 + type Codec struct + State *schemahcl.State + func (c *Codec) Eval(p *hclparse.Parser, v any, input map[string]cty.Value) error + func (c *Codec) EvalOptions(p *hclparse.Parser, v any, opts *schemahcl.EvalOptions) error + func (c *Codec) MarshalSpec(v any) ([]byte, error) + type CreateStmt struct + S string + type Driver struct + func (*Driver) FormatType(t schema.Type) (string, error) + func (*Driver) ParseType(s string) (schema.Type, error) + func (*Driver) ScanStmts(input string) ([]*migrate.Stmt, error) + func (*Driver) StmtBuilder(opts migrate.PlanOptions) *sqlx.Builder + func (d *Driver) CheckClean(ctx context.Context, revT *migrate.TableIdent) error + func (d *Driver) Lock(_ context.Context, name string, timeout time.Duration) (schema.UnlockFunc, error) + func (d *Driver) Snapshot(ctx context.Context) (migrate.RestoreFunc, error) + type File struct + Name string + type IndexOrigin struct + O string + type IndexPredicate struct + P string + type Strict struct + type Tx interface + Commit func() error + Rollback func() error + type UUIDType = schema.UUIDType + type UserDefinedType struct + T string + type WithoutRowID struct