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
631 B
SQL

--
-- 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;