cassandra-codegen
Version:
Generate type definitions from a Cassandra database
44 lines (43 loc) • 1.51 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.queryOperator = void 0;
const cassandra_driver_1 = require("cassandra-driver");
exports.queryOperator = {
// Not the actual return type. This is an ugly hack to squeeze type-safety out of the third party QueryOperator functions.
in_: function in_(arr) {
return cassandra_driver_1.mapping.q.in_(arr);
},
gt: function gt(value) {
return cassandra_driver_1.mapping.q.gt(value);
},
gte: function gte(value) {
return cassandra_driver_1.mapping.q.gte(value);
},
lt: function lt(value) {
return cassandra_driver_1.mapping.q.lt(value);
},
lte: function lte(value) {
return cassandra_driver_1.mapping.q.lte(value);
},
notEq: function notEq(value) {
return cassandra_driver_1.mapping.q.notEq(value);
},
and: function and(condition1, condition2) {
return cassandra_driver_1.mapping.q.and(condition1, condition2);
},
incr: function incr(value) {
return cassandra_driver_1.mapping.q.incr(value);
},
decr: function decr(value) {
return cassandra_driver_1.mapping.q.decr(value);
},
append: function append(value) {
return cassandra_driver_1.mapping.q.append(value);
},
prepend: function prepend(value) {
return cassandra_driver_1.mapping.q.prepend(value);
},
remove: function remove(value) {
return cassandra_driver_1.mapping.q.remove(value);
},
};
;