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