The db (database) namespace lets you control the database directly via Knex
- Source:
Example
await knex = bp.db.get()
Methods
(async, static) get() → {KnexQueryBuilder}
Returns an initialized and connected instance of Knex. Knex is a SQL Query Builder and database abstractor that Botpress (and every Botpress modules) use internally. Knex Documentation
- Source:
Returns:
- Type:
-
KnexQueryBuilder