Get the latest tech news

Psql-describe: \d ported to JavaScript


psql's \d (describe) family of commands ported to JavaScript - neondatabase/psql-describe

echoHidden(boolean) has the same effect as the-E argument to psql: if true, all SQL queries are output to outputFn, in addition to the final results. The outputs of describe(), as passed to the outputFn argument, are a mix of plain strings and JS objects representing tables. When an object item is passed in, a formatted plain-text table is returned, identical to those produced by the psql CLI.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of javascript

javascript

Photo of describe

describe

Related news:

News photo

Lightweight Dillo browser springs back to life, still doesn't care about JavaScript

News photo

Flying planes in Microsoft Flight Simulator with a JavaScript autopilot (2023)

News photo

Cylon: JavaScript framework for robotics, drones, and the Internet of Things