Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyCmd ¶
type ApplyCmd struct {
Path string `arg:"" default:"*.sql" help:"Path of SQL files to run."`
IfModified bool `xor:"status" help:"Run if file has modified"`
ForceRerun bool `xor:"status" help:"Rerun any failed SQL files."`
BeforeSQL string `help:"SQL statements to execute before applying."`
Exclude string `env:"QREV_EXCLUDE" help:"Glob for filenames to exclude from SQL files."`
}
type MarkCmd ¶
type Options ¶
type Options struct {
DSN string `short:"d" required:"" env:"QREV_DSN" help:"DSN for the database to connect to."`
Driver driver.Driver `kong:"-"`
Timeout time.Duration `env:"QREV_TIMEOUT" default:"3m" help:"Transaction timeout duration."`
IAMAuth bool `negatable:"" env:"QREV_IAM_AUTH" help:"Use RDS IAM authentication."`
Color bool `negatable:"" env:"QREV_COLOR" short:"C" help:"Colorize output."`
Output io.Writer `kong:"-"`
}
func (*Options) AfterApply ¶
func (*Options) BeforeApply ¶
type PlanCmd ¶
type PlanCmd struct {
Path string `arg:"" default:"*.sql" help:"Path of SQL files to run."`
IfModified bool `xor:"status" help:"Run if file has modified"`
ForceRerun bool `xor:"status" help:"Rerun any failed SQL files."`
CheckPsql bool `help:"Check PostgreSQL SQL syntax."`
Exclude string `env:"QREV_EXCLUDE" help:"Glob for filenames to exclude from SQL files."`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.