serialize-email
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v64View latest version
Simple utilities for storing email data in SQLite on Val Town.
Creates a table with the following schema:
id- INTEGER PRIMARY KEYtimestamp- INTEGER NOT NULL (Unix timestamp)data- TEXT NOT NULL (JSON string)
Inserts an email object into the specified table with the current timestamp.
import { createTable, insertEmail } from "./sqlite.ts";
// Create table
await createTable("my_emails");
// Insert email data
await insertEmail("my_emails", emailObject);
- Val Town SQLite standard library
- Email objects must be JSON serializable