Releases: sevenwestmedia-labs/node-knex-query-executor
Releases · sevenwestmedia-labs/node-knex-query-executor
v3.1.0
v3.0.0
v2.0.1
v2.0.0
2.0.0 (2019-01-24)
BREAKING CHANGES
Removed withArgs
The withArgs function has been removed. Previously it has been required so that type safety around the query arguments can be ensured. Now args must be passed in as a second parameter of the execute function.
This change also effects how the query function is structured. Now, the “args” are passed into the second argument of the query function.
Here is an example of how it now works:
const query = queryExecutor.createQuery<string, string>(
async ({ tables }, arg) => {
tables.tableOne()
return arg
}
)
await queryExecutor.execute(query, ‘hello!’)