Programmatically pull table schema (Postgres)

Is it possible to programmatically pull/build a table schema object from a database table?
Bascially,
const table = db.pullTable("table")
Was this page helpful?