Files
Kordant/web/test/__mocks__/drizzle-orm.js
2026-05-27 10:30:23 -04:00

29 lines
900 B
JavaScript

// drizzle-orm mock - chainable proxies
function createChainable() {
return new Proxy(function() {}, {
apply() { return createChainable(); },
get() { return createChainable(); },
});
}
const eq = createChainable();
const and = createChainable();
const or = createChainable();
const not = createChainable();
const inArray = createChainable();
const gte = createChainable();
const lte = createChainable();
const gt = createChainable();
const lt = createChainable();
const like = createChainable();
const ilike = createChainable();
const isNull = createChainable();
const isNotNull = createChainable();
const desc = createChainable();
const asc = createChainable();
const count = createChainable();
const sql = createChainable();
const relations = createChainable();
export { eq, and, or, not, inArray, gte, lte, gt, lt, like, ilike, isNull, isNotNull, desc, asc, count, sql, relations };