We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to test a query with 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'. Looks like the rawQuery is coming in as
{ method: 'create', sql: 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"', bindings: [], options: {}, __knexQueryUid: 'YWbkHLXSCbrMkF-4EbyRi', queryContext: undefined }
But I think we would need a create method added to tracker.on to support this. Or is there another way to handle this?
The text was updated successfully, but these errors were encountered:
Since it is Postgres specific query, I don't think that the tracker should have create handler.
Postgres
create
Maybe it is better to add any handler which these handlers will be used for any type of queries. WDYT?
any
Sorry, something went wrong.
c8dfacb
In v1.4.0 there is a new any method which capture any query type. Usage will look like:
v1.4.0
const affectedRows = 1; tracker.on .any((rawQuery) => rawQuery.method === 'create' && rawQuery.sql.includes('"uuid-ossp"')) .response(affectedRows);
Thanks! I will check this out.
No branches or pull requests
Trying to test a query with 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'. Looks like the rawQuery is coming in as
But I think we would need a create method added to tracker.on to support this. Or is there another way to handle this?
The text was updated successfully, but these errors were encountered: