~rbn/rom

355f359ac4a074f4fa601dc03872446147284de1 — Ruben Schuller 8 months ago b98773f master v0.0.20
postgres feature branch slipped into the generated documentation
2 files changed, 8 insertions(+), 12 deletions(-)

M README.md
M cmd/rom/doc.go
M README.md => README.md +4 -6
@@ 32,13 32,13 @@ currently supported are MySQL/MariaDB and SQLite. support for postgres is planne

```

usage:	rom (-mysql|-postgres|-sqlite) [-schema STRING] [-pkg STRING] [-dsn STRING]
usage:	rom (-mysql|-sqlite) [-schema STRING] [-pkg STRING] [-dsn STRING]
	[-tables] [-views] [-procedures] [-methods] [-primary] [-foreign]

  the flags -mysql -postgres and -sqlite are mutually exclusive. the -dsn flag
  the flags -mysql and -sqlite are mutually exclusive. the -dsn flag
  must always select the "information_schema" database where applicable
  (currently MySQL/MariaDB and Postgres).  the database schema which code is
  generated for is selected by the -schema flag, it isn't used with SQLite.
  (currently MySQL/MariaDB).  the database schema which code is generated
  for is selected by the -schema flag, it isn't used with SQLite.
  
  code can be generated for -tables, -procedures and -views, with fine grained
  control over what is generated by the -methods, -primary and -foreign flags.


@@ 65,8 65,6 @@ usage:	rom (-mysql|-postgres|-sqlite) [-schema STRING] [-pkg STRING] [-dsn STRIN
    	read a mysql/maria database
  -package string
    	package name of generated code (default "foobar")
  -postgres
    	read a postgres database
  -primary
    	generate code which uses primary keys
  -procedures

M cmd/rom/doc.go => cmd/rom/doc.go +4 -6
@@ 25,13 25,13 @@ currently supported are MySQL/MariaDB and SQLite. support for postgres is planne
Usage


	usage:	rom (-mysql|-postgres|-sqlite) [-schema STRING] [-pkg STRING] [-dsn STRING]
	usage:	rom (-mysql|-sqlite) [-schema STRING] [-pkg STRING] [-dsn STRING]
		[-tables] [-views] [-procedures] [-methods] [-primary] [-foreign]

	  the flags -mysql -postgres and -sqlite are mutually exclusive. the -dsn flag
	  the flags -mysql and -sqlite are mutually exclusive. the -dsn flag
	  must always select the "information_schema" database where applicable
	  (currently MySQL/MariaDB and Postgres).  the database schema which code is
	  generated for is selected by the -schema flag, it isn't used with SQLite.
	  (currently MySQL/MariaDB).  the database schema which code is generated
	  for is selected by the -schema flag, it isn't used with SQLite.

	  code can be generated for -tables, -procedures and -views, with fine grained
	  control over what is generated by the -methods, -primary and -foreign flags.


@@ 58,8 58,6 @@ Usage
	    	read a mysql/maria database
	  -package string
	    	package name of generated code (default "foobar")
	  -postgres
	    	read a postgres database
	  -primary
	    	generate code which uses primary keys
	  -procedures