mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +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/MapTest.sql
Normal file
26
samples/schema/petstore/mysql/Model/MapTest.sql
Normal 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;
|
||||
|
||||
Reference in New Issue
Block a user