@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
8 lines (7 loc) • 366 B
JavaScript
import { NumberDatabaseHelper } from '../types.js';
import { maybeStringifyBigInt } from '../utils/maybe-stringify-big-int.js';
export class NumberHelperSQLite extends NumberDatabaseHelper {
addSearchCondition(dbQuery, collection, name, value, logical) {
return dbQuery[logical].where({ [`${collection}.${name}`]: maybeStringifyBigInt(value) });
}
}