UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

12 lines (10 loc) 456 B
import { NumberDatabaseHelper } from "../types.js"; import { maybeStringifyBigInt } from "../utils/maybe-stringify-big-int.js"; //#region src/database/helpers/number/dialects/sqlite.ts var NumberHelperSQLite = class extends NumberDatabaseHelper { addSearchCondition(dbQuery, collection, name, value, logical) { return dbQuery[logical].where({ [`${collection}.${name}`]: maybeStringifyBigInt(value) }); } }; //#endregion export { NumberHelperSQLite };