Getting Started
qb is the engine that powers Quick. It is highly recommended that you become familiar with the qb documentation.
Make sure to set
this.datasource
in your Application.cfc
so Quick knows which datasource to use.Quick can use multiple datasources, but it makes it easier to use when you don't have to deal with that.
The easiest way to download Quick is to use ForgeBox with CommandBox. Just run the following from the root of your application:
box install quick
For a default installation in a ColdBox template, the following line will do the trick.
this.mappings[ "/quick" ] = COLDBOX_APP_ROOT_PATH & "/modules/quick";
Quick will auto discover your grammar by default on startup. To avoid this check, set a
BaseGrammar
.defaultGrammar
is a module setting for Quick. Set it in your config/ColdBox.cfc
like so:Valid options are any of the qb supported grammars. At the time of writing valid grammar options are:
[email protected]
, [email protected]
, [email protected]
and [email protected]
. You can also have qb discover your grammar on application init using [email protected]
. Please check the qb docs for additional options.If you want to use a different datasource and/or grammar for individual entitities you can do so by adding some metadata attributes to your entities.
Last modified 5d ago