Coder Social home page Coder Social logo

pg-documentor's Introduction

PG Documentor

Automatically generate documentation for a PostgreSQL database

Two outputs are available at the moment :

  • json : this will dump the DB structure in a JSON file
  • hugo : this will generate the necessary content for a hugo generated websites.

Installation :

Install globally or locally using your npm / yarn :

npm install -g pg-documentor
yarn global add pg-documentor

Configuration :

Create a .env file in the folder you'll be running the script, containing a PostgreSQL connection string as accepted by pg-connection-string

DB_CONNECTION_STRING='postgresql://user@uri:PORT/db_name'

Usage :

pg-documentor --format hugo --destination ../path/to/hugo/content/ 
pg-documentor --format json --destination ../path/to/file.json

Additional command line option :

  • --ignored-schemas public : allows ignoring a set of schemas (use a comma separated list of schemas to ignore multiple schemas)

pg-documentor's People

Contributors

gfilliere avatar

Stargazers

Scott Ivey avatar Quan TRAN avatar Petri Kola avatar Nathan Hutchision avatar Gabor Dolla avatar Gajus Kuizinas avatar Josian Godard avatar

Watchers

James Cloos avatar  avatar Josian Godard avatar

pg-documentor's Issues

Todolist

  • Better PG error handling
  • Allow connection string to be set from the cli as an arg
  • Hugo Writer : Generate front page with schema list
  • Document functions
  • Document domains
  • Add example of Hugo generated site

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.