forked from loafle/openapi-generator-original
[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/Dog.sql
Normal file
26
samples/schema/petstore/mysql/Model/Dog.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
--
|
||||
-- OpenAPI Petstore.
|
||||
-- Prepared SQL queries for 'Dog' definition.
|
||||
--
|
||||
|
||||
|
||||
--
|
||||
-- SELECT template for table `Dog`
|
||||
--
|
||||
SELECT `className`, `color`, `breed` FROM `Dog` WHERE 1;
|
||||
|
||||
--
|
||||
-- INSERT template for table `Dog`
|
||||
--
|
||||
INSERT INTO `Dog`(`className`, `color`, `breed`) VALUES (?, ?, ?);
|
||||
|
||||
--
|
||||
-- UPDATE template for table `Dog`
|
||||
--
|
||||
UPDATE `Dog` SET `className` = ?, `color` = ?, `breed` = ? WHERE 1;
|
||||
|
||||
--
|
||||
-- DELETE template for table `Dog`
|
||||
--
|
||||
DELETE FROM `Dog` WHERE 0;
|
||||
|
||||
Reference in New Issue
Block a user