Versions in this module Expand all Collapse all v1 v1.1.1 Nov 1, 2026 v1.1.0 Oct 31, 2026 Changes in this version + func Apply(ctx context.Context, db *sql.DB, opts ApplyOptions) (any, error) + func BundleFiles(files []File) (fs.FS, error) + func Decode(data []byte, value any) error + func Unwrap(data []byte) (json.RawMessage, []string, error) + func Validate(opts ApplyOptions) error + func Variables(values []string) (map[string]cty.Value, error) + type ApplyOptions struct + Acks []string + Artifact json.RawMessage + Dialect string + Hash string + LockTimeout time.Duration + Schema string + type File struct + Content string + Path string + type Options struct + AllowDrops bool + Bundle fs.FS + Dialect string + Routines string + Schema string + Source Source + Variables []string + type PlanResult struct + Acks []string + Applicable bool + Artifact json.RawMessage + Changes []native.Change + Dialect string + Hash string + Original json.RawMessage + SQL string + Schema string + Steps []Step + Warnings []string + func Plan(ctx context.Context, db *sql.DB, opts Options) (PlanResult, error) + func Review(data []byte, dialect, schema string) (PlanResult, error) + type RunOptions struct + Acks []string + ArtifactContent json.RawMessage + Hash string + LockTimeout string + Mode string + Plan Options + Target dbtarget.OpenOptions + type RunResult struct + Acks []string + Artifact any + Hash string + Mode string + Plan *PlanResult + Result any + func Execute(ctx context.Context, opts RunOptions, record *history.Record, t *task.Task) (payload RunResult, returnErr error) + type Source struct + Content string + Files []File + Kind string + type Step struct + Destructive bool + ID string + SQL string