[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
This commit is contained in:
Yuriy Belenko
2020-04-12 11:49:50 +03:00
committed by GitHub
parent 6a158de431
commit 1c51d4138e
56 changed files with 1364 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
--
-- OpenAPI Petstore.
-- Prepared SQL queries for 'MapTest' definition.
--
--
-- SELECT template for table `MapTest`
--
SELECT `map_map_of_string`, `map_of_enum_string`, `direct_map`, `indirect_map` FROM `MapTest` WHERE 1;
--
-- INSERT template for table `MapTest`
--
INSERT INTO `MapTest`(`map_map_of_string`, `map_of_enum_string`, `direct_map`, `indirect_map`) VALUES (?, ?, ?, ?);
--
-- UPDATE template for table `MapTest`
--
UPDATE `MapTest` SET `map_map_of_string` = ?, `map_of_enum_string` = ?, `direct_map` = ?, `indirect_map` = ? WHERE 1;
--
-- DELETE template for table `MapTest`
--
DELETE FROM `MapTest` WHERE 0;