1.0.5 • Published 1 year ago

@devopifex/witty v1.0.5

Weekly downloads
-
License
GPL-3
Repository
-
Last release
1 year ago

Witty

Example

initialise()
    .then((params) => {
        const jsonRowContent = [
          { col1: 1, col2: "foo" },
          { col1: 2, col2: "bar" },
        ];
        await params.db.registerFileText("rows.json", JSON.stringify(jsonRowContent));
        await params.con.insertJSONFromPath("rows.json", { name: "rows" });

        const w = new Witty(params)

        emitEvent({
          id: 1,
          query: new Query().from("rows").select("col1", "col2"),
        });

        emitEvent({
          id: 2,
          query: new Query().from("rows").select("col1", "col2").where("col1", ">", 1),
        });

        w.on((data) => {
          console.info(data);
        });
    })
1.0.5

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

1 year ago