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
657 B
SQL

--
-- "OpenAPI Petstore"
-- Prepared SQL queries for 'ApiResponse' definition.
-- Created using 'openapi-generator' ('postgresql-schema' generator)
-- (https://openapi-generator.tech/docs/generators/postgresql-schema)
--
--
-- SELECT template for table 'api_response'
--
SELECT code, "type", message FROM api_response WHERE 1=1;
--
-- INSERT template for table 'api_response'
--
INSERT INTO api_response (code, "type", message) VALUES (?, ?, ?);
--
-- UPDATE template for table 'api_response'
--
UPDATE api_response SET code = ?, "type" = ?, message = ? WHERE 1=2;
--
-- DELETE template for table 'api_response'
--
DELETE FROM api_response WHERE 1=2;