Lecaethomas / pg-metadata-to-latex

Create LateX metadata file from tables stored in Postgres schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Synthesis :

Using psycopg2 and Tabulate Python packages, this script allows to create a LateX file describing each tables's columns (name, data_type, maximum character length, is it nullable).

Alt text
Example of metadata of a table in my local database

Limitations / ~road-map :

  • get comment on each columns (if they exists)
  • the LateX presentation is awful, and there's some bugs
  • data type for geometry columns is considered as "user-defined", it should be handled by the script
  • Ideally it could be parameterized and also accept flat files like Shapefile

About

Create LateX metadata file from tables stored in Postgres schema


Languages

Language:Jupyter Notebook 100.0%