UNPKG

tabel

Version:

A simple orm for PostgreSQL which works with simple javascript objects and arrays

31 lines (24 loc) 523 B
const {isArray} = require('lodash'); class Queue { constructor(client, name) { this.client = client; this.name = name; } dq() { return this.client.dq(this.name); } nq(...args) { if (isArray(args[0])) { return this.client.nq(this.name, args[0]); } else { return this.client.nq(this.name, args); } } range(startI=0, endI=-1) { return this.client.range(this.name, startI, endI); } clear() { return this.client.clear(this.name); } } module.exports = Queue;