Interface: DbValidationOptions
Options for database-backed validation helpers such as uniqueInDb and existsInDb.
Properties
| Property | Type | Description |
|---|---|---|
caseInsensitive? | boolean | Perform case-insensitive comparisons when querying the database. Defaults to false. |
filter? | (queryBuilder: QueryBuilder, value: any, column: string, helpers: Omit<ExternalHelpers, "warn" | "error" | "message">) => void | Promise<void> | Optional function that receives the Knex query builder (or equivalent) so the caller can append additional WHERE clauses (or joins). Can be async. Example: async (query, value, column, helpers) => query.where('tenant_id', tenantId) |