Skip to content

Instantly share code, notes, and snippets.

View ameyms's full-sized avatar

Amey Sakhadeo ameyms

View GitHub Profile
@ameyms
ameyms / load-db.js
Last active September 17, 2019 22:17
const sep = /[\n\r\.]+/ugs;
const genid = (i, suffix) => `false_13104670562-1546901958@g.us_3A188224CA720829${i.toString(16)}${suffix}`;
let counter = 0;
const loadDb = (text) => {
const lines = text.split(sep).filter(line => !!line && !sep.test(line.trim()) && !!line.trim()).map(line => line.trim());
counter++;
new Dexie('model-storage').open().then(db => {
@ameyms
ameyms / GQL Examples.md
Last active April 24, 2023 18:50
GQL Examples

car_owners_summary is a query that should return a summarization of car owner information (with time granularity as an optional argument)

The part I was curious about was how you feel about "row count increasing by adding one additional field in the query". Essentially, when fields are added to the query, it returns a cross product between two tables.

Example 1

Query

{