GitHub - neondatabase/psql-describe: psql's \d (describe) family of commands ported to JavaScript
psql-describe
psql's \d (describe) family of commands ported to JavaScript.
From the Postgres master branch (17devel), we take exec_command_d, exec_command_list and exec_command_sf_sv from command.c, and all of describe.c and sql_help.c, from src/bin/psql.
We use plenty of RegExp search-and-replace to turn this C code into valid JS syntax.
We implement some C library functions, such as strlen and strchr, and some Postgres support functions, such as printTable and printQuery, in JavaScript.
We wr...
Read more at github.com