UNPKG

@rstore/nuxt-drizzle

Version:
152 lines (151 loc) 2.24 kB
export function eq(field, value) { return { operator: "eq", field, value }; } export function ne(field, value) { return { operator: "ne", field, value }; } export function gt(field, value) { return { operator: "gt", field, value }; } export function lt(field, value) { return { operator: "lt", field, value }; } export function gte(field, value) { return { operator: "gte", field, value }; } export function lte(field, value) { return { operator: "lte", field, value }; } export function inArray(field, value) { return { operator: "inArray", field, value }; } export function notInArray(field, value) { return { operator: "notInArray", field, value }; } export function like(field, value) { return { operator: "like", field, value }; } export function notLike(field, value) { return { operator: "notLike", field, value }; } export function ilike(field, value) { return { operator: "ilike", field, value }; } export function notIlike(field, value) { return { operator: "notIlike", field, value }; } export function arrayContains(field, value) { return { operator: "arrayContains", field, value }; } export function arrayContained(field, value) { return { operator: "arrayContained", field, value }; } export function arrayOverlaps(field, value) { return { operator: "arrayOverlaps", field, value }; } export function between(field, value1, value2) { return { operator: "between", field, value1, value2 }; } export function notBetween(field, value1, value2) { return { operator: "notBetween", field, value1, value2 }; } export function not(condition) { return { operator: "not", condition }; } export function isNull(field) { return { operator: "isNull", field }; } export function isNotNull(field) { return { operator: "isNotNull", field }; } export function and(...conditions) { return { operator: "and", conditions }; } export function or(...conditions) { return { operator: "or", conditions }; }