@shotero/gen-schema

0.0.1 • Public • Published

Gen Schema

Generate JSON Schema definitions from a PostgreSQL database

Configuration

.genschemarc.js

module.exports = {
  baseUrl: 'https://genschema.com',
  schemaVersion: 'http://json-schema.org/draft-07/schema#',
  db: {
    database: 'db',
    user: 'system'
  },
  schemas: [
    {
      name: 'public',
      renames: {},
      ignores: ['ignore', 'these', 'tables']
    }
  ]
};

Usage

import { getSchemas } from '@shotero/gen-schema';

console.dir(await getSchemas());

Package Sidebar

Install

npm i @shotero/gen-schema

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

9.1 kB

Total Files

14

Last publish

Collaborators

  • lemonchiffon