0.2.12 • Published 3 years ago

introspectron v0.2.12

Weekly downloads
62
License
SEE LICENSE IN LI...
Repository
github
Last release
3 years ago

introspectron

npm install introspectron

Thanks https://www.graphile.org/ for the original introspection query!

import { introspect } from 'introspectron';

const result = await introspect(pgPool, {
   schemas: ['app_public']
});

output

 {
  "__pgVersion": 110003,
  "attribute": [
     {
      "aclInsertable": true,
      "aclSelectable": true,
      "aclUpdatable": true,
      "classId": "826",
      "columnLevelSelectGrant": false,
      "comment": null,
      "description": null,
      "hasDefault": false,
      "identity": "",
      "isNotNull": true,
      "kind": "attribute",
      "name": "defaclrole",
      "num": 1,
      "tags": Object {},
      "typeId": "26",
      "typeModifier": null,
    },
    ...

testing

createdb testdb psql testdb -f ./seed.sql

0.2.12

3 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago