Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

My First Playground

node v18.11.0
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const Knex = require('knex'); const knexPg = Knex({ client: 'pg', }); (async function run() { await knexPg.schema.createTable('test', (t) => { t.increments('id').primary(); t.timestamp('timestamp', { useTz: true }); }); await knexPg('test').insert([{ timestamp: '2024-09-01T00:00:00.000+05:30' }]); console.log('test table data:', await knexPg('test')); })();
Loading…

no comments

    sign in to comment