DBProvider

circle-check
circle-check

You may use a database as the backing engine for your Queue Connection using the DBProvider. All database grammars that are supported by qbarrow-up-right are supported.

Configuration

The DBProvider has three optional arguments. The are presented below with their default values.

{
    "tableName": "cbq_jobs",
    "datasource": null,
    "queryOptions": {}
}

tableName

The name of the table to use when managing jobs. This table should have the structure provided by the provided database migration file.

datasource

The name of the datasource to use when managing jobs. This overrides any datasource provided in the queryOptions.

queryOptions

A struct of options that will be passed to queryExecutearrow-up-right when managing jobs.

Jobs Table Structure

The cbq_jobs table must have a specific structure. It is provided in the form of a migration file called 2000_01_01_000000_create_cbq_jobs_table.cfc. This migration can be ran via CommandBox Migrationsarrow-up-right or CFMigrationsarrow-up-right. If you wish, you can generate the table in other ways, so long as it matches the structure provided in the migration file.

If you choose to use the migration file in your application, copy the file out to your own migrations folder first.

Last updated