import type { Knex } from 'knex'; import type { Database } from '..'; /** * @internal */ export declare function isKnexQuery(value: unknown): value is Knex.Raw | Knex.QueryBuilder; /** * Applies the configured `settings.queryTimeout` (milliseconds) to a query so that the database * cancels it once the timeout elapses, instead of letting it run to completion while it holds a * pooled connection. * * A no-op when the setting is unset, or when the dialect cannot cancel queries (only the pg and * mysql knex clients can; knex throws when `{ cancel: true }` is used on any other client, and the * synchronous better-sqlite3 driver would never fire the timer anyway). * * @internal */ export declare function applyQueryTimeout(query: T, db: Database): T; /** * Adds the name of the schema to the table name if the schema was defined by the user. * Users can set the db schema only for Postgres in strapi database config. */ export declare const addSchema: (db: Database, tableName: string) => string; //# sourceMappingURL=knex.d.ts.map