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