
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@pgkit/schemainspect
Advanced tools
schemainspect: SQL Schema Inspection for PostgreSQLInspects tables, views, materialized views, constraints, indexes, sequences, enums, functions, and extensions. Handles table partitioning and inheritance.
A port of @djrobstep's python schemainspect library.
Limitations: Function inspection only confirmed to work with SQL/PLPGSQL languages so far.
Install with npm:
npm install @pgkit/schemainspect
Get an inspection object from an already opened SQLAlchemy session or connection as follows:
import {PostgreSQL} from '@pgkit/schemainspect'
const inspector = await PostgreSQL.create('postgresql://')
console.log(inspector.tables)
console.log(inspector.views)
console.log(inspector.functions)
console.log(inspector.tables[`"public"."mytable"`].schema)
console.log(inspector.tables[`"public"."mytable"`].name)
console.log(inspector.tables[`"public"."mytable"`].columns.mycolumn.dbtype)
console.log(inspector.tables[`"public"."mytable"`].columns.mycolumn.is_nullable)
The inspection object has attributes for tables, views, and all the other things it tracks. At each of these attributes you'll find a dictionary (Record<string, ...>) mapping from fully-qualified-and-quoted-name-of-thing-in-database to information object.
For instance, the information about a table books would be accessed as follows:
>>> books_table = i.tables['"public"."books"']
>>> books_table.name
'books'
>>> books_table.schema
'public'
>>> [each.name for each in books_table.columns]
['id', 'title', 'isbn']
Documentation is a bit patchy at the moment. Watch this space!
Initial development, maintenance:
TypeScript port:
Contributions:
FAQs
SQL Schema Inspection for PostgreSQL
The npm package @pgkit/schemainspect receives a total of 20,128 weekly downloads. As such, @pgkit/schemainspect popularity was classified as popular.
We found that @pgkit/schemainspect demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.