Versions in this module Expand all Collapse all v1 v1.0.6 Oct 23, 2026 Changes in this version + const DriverName + 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(planner.FormatType), ...) + func CatalogType(c mssqlcatalog.Column) (schema.Type, error) + func Open(db schema.ExecQuerier) (migrate.Driver, error) + func OpenClient(ctx context.Context, db *sql.DB) (*sqlclient.Client, error) + func OpenTx(ctx context.Context, db *sql.DB, opts *sql.TxOptions) (*sqlclient.Tx, error) + 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 Driver struct + func (*Driver) FormatType(t schema.Type) (string, error) + func (*Driver) ParseType(s string) (schema.Type, error) + func (*Driver) StmtBuilder(opts migrate.PlanOptions) *sqlx.Builder + func (d *Driver) CheckClean(context.Context, *migrate.TableIdent) error + func (d *Driver) CompatibilityLevel() int + func (d *Driver) Lock(ctx context.Context, name string, timeout time.Duration) (schema.UnlockFunc, error) + func (d *Driver) Snapshot(context.Context) (migrate.RestoreFunc, error) + func (d *Driver) Version() string