Documentation
¶
Index ¶
- 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
- type File
- type Options
- type PlanResult
- type RunOptions
- type RunResult
- type Source
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(opts ApplyOptions) error
Types ¶
type ApplyOptions ¶
type PlanResult ¶
type PlanResult struct {
Dialect string `json:"dialect"`
Schema string `json:"schema"`
Artifact json.RawMessage `json:"artifact"`
Hash string `json:"hash"`
Acks []string `json:"acks"`
Steps []Step `json:"steps"`
Changes []native.Change `json:"changes"`
Warnings []string `json:"warnings"`
Applicable bool `json:"applicable"`
SQL string `json:"sql"`
Original json.RawMessage `json:"-"`
}
type RunOptions ¶
type RunOptions struct {
Mode string
Target dbtarget.OpenOptions
Plan Options
Hash string
Acks []string
ArtifactContent json.RawMessage
LockTimeout string
}
type RunResult ¶
Click to show internal directories.
Click to hide internal directories.