Documentation
¶
Index ¶
- func NewMysqlBackend(host string, port int, user, password, database string, opts ...option) *mysqlBackend
- func WithApplyMigrations(applyMigrations bool) option
- func WithBackendOptions(opts ...backend.BackendOption) option
- func WithMySQLOptions(f func(db *sql.DB)) option
- func WithTaskClaimBatchSize(size int) option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMysqlBackend ¶
func WithApplyMigrations ¶
func WithApplyMigrations(applyMigrations bool) option
WithApplyMigrations automatically applies database migrations on startup.
func WithBackendOptions ¶
func WithBackendOptions(opts ...backend.BackendOption) option
WithBackendOptions allows to pass generic backend options.
func WithMySQLOptions ¶
func WithTaskClaimBatchSize ¶ added in v0.2.0
func WithTaskClaimBatchSize(size int) option
WithTaskClaimBatchSize sets how many candidates are tried during optimistic task claiming. Values less than 1 keep the default.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.