Skip to content

Instantly share code, notes, and snippets.

View panda01's full-sized avatar

Khalah Jones Golden panda01

View GitHub Profile
@panda01
panda01 / quest_make_tables.js
Created July 19, 2021 10:59
A simple node program to create a bunch of tables inside of a questdb server running locally
const request = require('request');
function makeANewTable(idx, limit) {
const urlEncodedQuery = encodeURIComponent(`CREATE TABLE IF NOT EXISTS trades${idx} (ts TIMESTAMP, date DATE, name STRING, value INT) timestamp(ts);`);
const wholeUrl = 'http://localhost:9000/exec?query=' + urlEncodedQuery;