Skip to content

Commit 0eb8706

Browse files
test
1 parent cb0bec0 commit 0eb8706

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/index.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,3 +279,28 @@ const db = new PuddySql.Instance();
279279
console.log('\n✅ \x1b[1;32mAll tag tests done.\x1b[0m');
280280
console.log('\n🎉 \x1b[1;32mDone. Everything looks delicious! 🍮\x1b[0m\n');
281281
})();
282+
283+
// await db.getTable('users').find({ perPage: 30, q: { userId: { value: 1, operator: '>' } } });
284+
/* await db.getTable('users').search({
285+
q: {
286+
group: 'AND',
287+
conditions: [
288+
{ column: 'userId', value: 'jasmindreasond' },
289+
{
290+
group: 'OR',
291+
conditions: [
292+
{ column: 'password', operator: '!==', value: 'admin' },
293+
{ column: 'password', operator: 'LIKE', value: 'admin' },
294+
{ column: 'password', operator: 'LOWER', value: 'admin', funcName: null },
295+
{ column: 'password', value: 'mod' },
296+
],
297+
},
298+
],
299+
},
300+
});
301+
.search(
302+
{ q: { nickname: { value: 'Tiny Jasmini' }, userId: { value: 'jasmindreasond' } } },
303+
'*',
304+
2,
305+
1,
306+
); */

0 commit comments

Comments
 (0)