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
512 B
SQL
27 lines
512 B
SQL
--
|
|
-- OpenAPI Petstore.
|
|
-- Prepared SQL queries for 'hasOnlyReadOnly' definition.
|
|
--
|
|
|
|
|
|
--
|
|
-- SELECT template for table `hasOnlyReadOnly`
|
|
--
|
|
SELECT `bar`, `foo` FROM `hasOnlyReadOnly` WHERE 1;
|
|
|
|
--
|
|
-- INSERT template for table `hasOnlyReadOnly`
|
|
--
|
|
INSERT INTO `hasOnlyReadOnly`(`bar`, `foo`) VALUES (?, ?);
|
|
|
|
--
|
|
-- UPDATE template for table `hasOnlyReadOnly`
|
|
--
|
|
UPDATE `hasOnlyReadOnly` SET `bar` = ?, `foo` = ? WHERE 1;
|
|
|
|
--
|
|
-- DELETE template for table `hasOnlyReadOnly`
|
|
--
|
|
DELETE FROM `hasOnlyReadOnly` WHERE 0;
|
|
|