Upgrading from 0.x
In the new major we added support for Cloudflare D1 batch queries and this new feature required us to change the interface on when the queries actually gets executed.
The required change for you to upgrade to 1.x
is only to append .execute()
at the end of every query, so you should
go from this:
const fetched = await qb.fetchOne({
tableName: 'employees',
fields: '*',
})
Into this:
const fetched = await qb
.fetchOne({
tableName: 'employees',
fields: '*',
})
.execute()
This change also allows you to pre-generate queries and to re-use them.