Documentation
¶
Overview ¶
Package jobs provides validated constructors for tinySQL catalog jobs.
Index ¶
- func Build(cfg Config) (*tinysql.CatalogJob, error)
- func NewCron(name, sqlText, cronExpr, timezone string, enabled bool) (*tinysql.CatalogJob, error)
- func NewInterval(name, sqlText string, interval time.Duration, enabled bool) (*tinysql.CatalogJob, error)
- func NewOnce(name, sqlText string, runAt time.Time, enabled bool) (*tinysql.CatalogJob, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(cfg Config) (*tinysql.CatalogJob, error)
Build validates cfg and returns a CatalogJob.
func NewCron ¶
func NewCron(name, sqlText, cronExpr, timezone string, enabled bool) (*tinysql.CatalogJob, error)
NewCron creates a CRON job.
func NewInterval ¶
func NewInterval(name, sqlText string, interval time.Duration, enabled bool) (*tinysql.CatalogJob, error)
NewInterval creates an INTERVAL job.
Types ¶
Click to show internal directories.
Click to hide internal directories.