
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
postgresql-http-server
Advanced tools
Attempt to implement something like the proposal at http://wiki.postgresql.org/wiki/HTTP_API
DISCLAIMER: Experimental work at this time.
NOTE: Requires node.js
# sudo npm install postgresql-http-server -g
# postgresql-http-server --help
PostgreSQL HTTP API Server
Options:
--port HTTP Server port [required] [default: 3000]
--dbhost PostgreSQL host [required] [default: "localhost"]
--dbport PostgreSQL port [required] [default: 5432]
--database PostgreSQL database [required] [default: <user>]
--user PostgreSQL username [required] [default: <user>]
--password PostgreSQL password
--help Show this message
The API is discoverable which means you can access the root resource at / and follow links to subresources from there. But lets say you have a database named testdb with a table named testtable in the public schema. You can then do the following operations:
GET row data at:
/db/testdb/schemas/public/tables/testtable/rows
GET row data with where filter like:
/db/testdb/schemas/public/tables/testtable/rows?where=id%3D3
GET paginated row data with limit and offset params:
/db/testdb/schemas/public/tables/testtable/rows?limit=10&offset=10
GET a single row at:
/db/testdb/schemas/public/tables/testtable/rows/id
POST a new row at:
/db/testdb/schemas/public/tables/testtable/rows
The default and currently the only dataformat is JSON.
FAQs
PostgreSQL HTTP API Server
The npm package postgresql-http-server receives a total of 1 weekly downloads. As such, postgresql-http-server popularity was classified as not popular.
We found that postgresql-http-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.