Skip to content

Commit

Permalink
error in ci on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
sbittmann committed Mar 17, 2022
1 parent f21bfb8 commit 03101fc
Show file tree
Hide file tree
Showing 11 changed files with 266 additions and 167 deletions.
13 changes: 7 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ let db = await new Database("testIndex", {

let tableName = "documents";

await db.table(tableName).ensureIndex("name");
await db.table(tableName).ensureIndex("test");
await db.table(tableName).ensureIndex("name");

let id = await db.table(tableName).save({ title: "Mr." });
let id2 = await db.table(tableName).save({ title: "" });

await db.table(tableName).ensureIndex("title");
let id = await db.table(tableName).save({ name: "Max Mustermann" });
let id2 = await db.table(tableName).save({ test: false });

let r = await db.table(tableName).find((row) => row.title == "Mr.");
let r = await db.table(tableName).filter((row) => {
return row.nested.nested.not.there;
});

console.log(r);
console.dir(r.getQuery(), { depth: null });
Loading

0 comments on commit 03101fc

Please sign in to comment.