Yuriy Belenko 1c51d4138e
[mysql] Add basic SQL queries (#5757)
* Add basic SQL queries template

* Add namedParametersEnabled option

* Move model related SQLs into Model folder

* Update README template

* Refresh samples
2020-04-12 16:49:50 +08:00

27 lines
561 B
SQL

--
-- OpenAPI Petstore.
-- Prepared SQL queries for 'Pet' definition.
--
--
-- SELECT template for table `Pet`
--
SELECT `id`, `category`, `name`, `photoUrls`, `tags`, `status` FROM `Pet` WHERE 1;
--
-- INSERT template for table `Pet`
--
INSERT INTO `Pet`(`id`, `category`, `name`, `photoUrls`, `tags`, `status`) VALUES (?, ?, ?, ?, ?, ?);
--
-- UPDATE template for table `Pet`
--
UPDATE `Pet` SET `id` = ?, `category` = ?, `name` = ?, `photoUrls` = ?, `tags` = ?, `status` = ? WHERE 1;
--
-- DELETE template for table `Pet`
--
DELETE FROM `Pet` WHERE 0;