mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-13 13:10:53 +00:00
* Add basic SQL queries template * Add namedParametersEnabled option * Move model related SQLs into Model folder * Update README template * Refresh samples
27 lines
494 B
SQL
27 lines
494 B
SQL
--
|
|
-- OpenAPI Petstore.
|
|
-- Prepared SQL queries for 'ReadOnlyFirst' definition.
|
|
--
|
|
|
|
|
|
--
|
|
-- SELECT template for table `ReadOnlyFirst`
|
|
--
|
|
SELECT `bar`, `baz` FROM `ReadOnlyFirst` WHERE 1;
|
|
|
|
--
|
|
-- INSERT template for table `ReadOnlyFirst`
|
|
--
|
|
INSERT INTO `ReadOnlyFirst`(`bar`, `baz`) VALUES (?, ?);
|
|
|
|
--
|
|
-- UPDATE template for table `ReadOnlyFirst`
|
|
--
|
|
UPDATE `ReadOnlyFirst` SET `bar` = ?, `baz` = ? WHERE 1;
|
|
|
|
--
|
|
-- DELETE template for table `ReadOnlyFirst`
|
|
--
|
|
DELETE FROM `ReadOnlyFirst` WHERE 0;
|
|
|