Ingars Ribners dc175c5335
Added PostgreSQL schema generator (BETA) (#20255)
* 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.
2024-12-07 22:52:59 +08:00

29 lines
679 B
SQL

--
-- "OpenAPI Petstore"
-- Prepared SQL queries for 'Pet' definition.
-- Created using 'openapi-generator' ('postgresql-schema' generator)
-- (https://openapi-generator.tech/docs/generators/postgresql-schema)
--
--
-- SELECT template for table 'pet'
--
SELECT "id", category, "name", photo_urls, tags, status FROM pet WHERE 1=1;
--
-- INSERT template for table 'pet'
--
INSERT INTO pet ("id", category, "name", photo_urls, tags, status) VALUES (?, ?, ?, ?, ?, ?);
--
-- UPDATE template for table 'pet'
--
UPDATE pet SET "id" = ?, category = ?, "name" = ?, photo_urls = ?, tags = ?, status = ? WHERE 1=2;
--
-- DELETE template for table 'pet'
--
DELETE FROM pet WHERE 1=2;