cbbrowne / autodoc Goto Github PK
View Code? Open in Web Editor NEWPostgreSQL Autodoc - dumps a Postgres schema in several useful documentary forms
PostgreSQL Autodoc - dumps a Postgres schema in several useful documentary forms
Hi @cbbrowne is this project still being developed/maintained?
Are there docs or a usage example?
postgresql_autodoc -h localhost -u postgres -p 7012 -d mydb
when pointed at PostgreSQL 12
generates a bunch of messages of the form...
DBD::Pg::st execute failed: ERROR: column "adsrc" does not exist
LINE 40: adsrc
^ at /usr/local/bin/postgresql_autodoc line 695.
The cause is documented in the PostgreSQL 12 release notes:
Remove obsolete pg_attrdef.adsrc column (Peter Eisentraut)
This column has been deprecated for a long time, because it did not update in response to other catalog changes (such as column renamings). The recommended way to get a text version of a default-value expression from pg_attrdef is pg_get_expr(adbin, adrelid).
Thanks for a fast easy to use no mess tool!!
I am exporting to dia (and zigzag.dia) but the result is all tables stacked on top of each other (~90 tables) how can i spread them out so i can see the full picture?
After doing an apt
install and running on my new system, I unexpectedly hit this error.
$ postgresql_autodoc -h localhost -u shane --password=password -d nt -f nt -t dot
Templates files not found in /build/postgresql-autodoc-XbwYdk/postgresql-autodoc-1.41+20200921/debian/postgresql-autodoc/usr/share/postgresql-autodoc
Please delete. Opened in error.
It would be nice to allow process comments by external tool. For example of comments are markdown string it can be converted into HTML or something.
Current :
Generated by PostgreSQL Autodoc
New :
Generated by PostgreSQL Autodoc
Should this be done? There is no content at the old url (rbc.ca).
Hi, receiving some error messages and missing data types for columns on .eps
exports.
Repeats dozens of times:
DBD::Pg::st fetchrow_hashref failed: no statement executing at /usr/bin/postgresql_autodoc line 689.
DBD::Pg::st execute failed: ERROR: column "adsrc" does not exist
LINE 40: adsrc
^ at /usr/bin/postgresql_autodoc line 687.
DBD::Pg::st fetchrow_hashref failed: no statement executing at /usr/bin/postgresql_autodoc line 689.
Use of uninitialized value in numeric comparison (<=>) at /usr/bin/postgresql_autodoc line 991.
Use of uninitialized value in numeric comparison (<=>) at /usr/bin/postgresql_autodoc line 1466.
postgresql_autodoc
Can't locate HTML/Template.pm in @INC (you may need to install the HTML::Template module) (@INC contains: /Library/Perl/5.30/darwin-thread-multi-2level /Library/Perl/5.30 /Network/Library/Perl/5.30/darwin-thread-multi-2level /Network/Library/Perl/5.30 /Library/Perl/Updates/5.30.2 /System/Library/Perl/5.30/darwin-thread-multi-2level /System/Library/Perl/5.30 /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level /System/Library/Perl/Extras/5.30) at /usr/local/bin/postgresql_autodoc line 56.
BEGIN failed--compilation aborted at /usr/local/bin/postgresql_autodoc line 56.
also the docker version can't connect to my postgres.
Hello,
are there any sample outputs?
Any chance you could add mermaid support?
https://mermaidjs.github.io/
when field name are a bit long there can happen they overlaps between field and type
see here below the image png produced by the dot
this is caused by the font override ( helvetica ) that takes much space
so if is not possible to compute the font aprior could helpful add together font family override another factor to do right adjustment.
Maybe I've missed an option, but is there a way to return all columns of tables?
PS: Thanks for the great tool.
Hi all,
love the work that's been done! I've just had one small issue, I think it's related to upgrading my Linux to postgres 10.10.
here's the error:
DBI connect('dbname=nutra','alephdog',...) failed: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? at /usr/bin/postgresql_autodoc line 260.
Unable to connect due to: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
but when i run this, i have no issues:
psql postgresql://alephdog:@localhost:5432/nutra
System info:
ubuntu 18.04
psql/pg_ctl 10.10
Postgres Auto-Doc Version 1.40
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.