mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 18:47:11 +00:00
[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:
26
samples/schema/petstore/mysql/Model/ArrayTest.sql
Normal file
26
samples/schema/petstore/mysql/Model/ArrayTest.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
--
|
||||
-- OpenAPI Petstore.
|
||||
-- Prepared SQL queries for 'ArrayTest' definition.
|
||||
--
|
||||
|
||||
|
||||
--
|
||||
-- SELECT template for table `ArrayTest`
|
||||
--
|
||||
SELECT `array_of_string`, `array_array_of_integer`, `array_array_of_model` FROM `ArrayTest` WHERE 1;
|
||||
|
||||
--
|
||||
-- INSERT template for table `ArrayTest`
|
||||
--
|
||||
INSERT INTO `ArrayTest`(`array_of_string`, `array_array_of_integer`, `array_array_of_model`) VALUES (?, ?, ?);
|
||||
|
||||
--
|
||||
-- UPDATE template for table `ArrayTest`
|
||||
--
|
||||
UPDATE `ArrayTest` SET `array_of_string` = ?, `array_array_of_integer` = ?, `array_array_of_model` = ? WHERE 1;
|
||||
|
||||
--
|
||||
-- DELETE template for table `ArrayTest`
|
||||
--
|
||||
DELETE FROM `ArrayTest` WHERE 0;
|
||||
|
||||
Reference in New Issue
Block a user