Back

Version 13

12/22/2023
import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
import { parseNotionDateDoc } from "https://esm.town/v/stevekrouse/date_me_doc_helpers";
import { dateMeNotionDatabase } from "https://esm.town/v/stevekrouse/dateMeNotionDatabase";

const notionDocs = await dateMeNotionDatabase;
const docs = notionDocs.map(parseNotionDateDoc);

const result = await sqlite.execute({
sql: `insert into DateMeDocs
(Id, Name, Profile, Gender, InterestedIn, Age,
Location, Style, WantsKids, LocationFlexibility,
Community, Contact, LastUpdated) VALUES (:Id, :Name, :Profile, :Gender, :InterestedIn, :Age,
:Location, :Style, :WantsKids, :LocationFlexibility,
:Community, :Contact, :LastUpdated)`,
args: docs[0],
});

// console.log(result)
Updated: March 18, 2024