Skip to content

Commit

Permalink
Added PostgreSQL schema generator (BETA) (#20255)
Browse files Browse the repository at this point in the history
* Initial version of PostgreSQL schema generator 'postgresql-schema' (based on 'mysql-schema' generator code)

* PostgreSQL schema generator. Initial version.

* Tested. Fixed errors. Documentation updated.

* Samples for 'postgresql-schema' updated.

* Removed current date/time from mustache templates for postgresql-schema generator.
Re-created samples.

* Re-created docs file for postgresql-schema generator.

* Removed unecessary LocalTime computing code and imports for postgresql-schema generator.

* Errors fixed for postgresql-schema generator. Samples recreated.

* Docs updated.
  • Loading branch information
iri authored Dec 7, 2024
1 parent e025a7d commit dc175c5
Show file tree
Hide file tree
Showing 27 changed files with 3,672 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,7 @@ Here is a list of template creators:
* GraphQL: @wing328 [:heart:](https://www.patreon.com/wing328)
* Ktorm: @Luiz-Monad
* MySQL: [@ybelenko](https://github.com/ybelenko)
* PostgreSQL: [@iri](https://github.com/iri)
* Postman Collection: @gcatanese
* Protocol Buffer: @wing328
* WSDL: @adessoDpd
Expand Down
5 changes: 5 additions & 0 deletions bin/configs/postgresql-schema-petstore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
generatorName: postgresql-schema
outputDir: samples/schema/petstore/postgresql
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/postgresql-schema

Empty file modified bin/utils/openapi-generator-cli.sh
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions docs/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ The following generators are available:
* [graphql-schema](generators/graphql-schema.md)
* [ktorm-schema (beta)](generators/ktorm-schema.md)
* [mysql-schema](generators/mysql-schema.md)
* [postgresql-schema (beta)](generators/postgresql-schema.md)
* [postman-collection (beta)](generators/postman-collection.md)
* [protobuf-schema (beta)](generators/protobuf-schema.md)
* [wsdl-schema (beta)](generators/wsdl-schema.md)
Expand Down
Loading

0 comments on commit dc175c5

Please sign in to comment.