forked from loafle/openapi-generator-original
* Add basic SQL queries template * Add namedParametersEnabled option * Move model related SQLs into Model folder * Update README template * Refresh samples
27 lines
938 B
SQL
27 lines
938 B
SQL
--
|
|
-- OpenAPI Petstore.
|
|
-- Prepared SQL queries for 'format_test' definition.
|
|
--
|
|
|
|
|
|
--
|
|
-- SELECT template for table `format_test`
|
|
--
|
|
SELECT `integer`, `int32`, `int64`, `number`, `float`, `double`, `string`, `byte`, `binary`, `date`, `dateTime`, `uuid`, `password`, `BigDecimal` FROM `format_test` WHERE 1;
|
|
|
|
--
|
|
-- INSERT template for table `format_test`
|
|
--
|
|
INSERT INTO `format_test`(`integer`, `int32`, `int64`, `number`, `float`, `double`, `string`, `byte`, `binary`, `date`, `dateTime`, `uuid`, `password`, `BigDecimal`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
|
|
|
|
--
|
|
-- UPDATE template for table `format_test`
|
|
--
|
|
UPDATE `format_test` SET `integer` = ?, `int32` = ?, `int64` = ?, `number` = ?, `float` = ?, `double` = ?, `string` = ?, `byte` = ?, `binary` = ?, `date` = ?, `dateTime` = ?, `uuid` = ?, `password` = ?, `BigDecimal` = ? WHERE 1;
|
|
|
|
--
|
|
-- DELETE template for table `format_test`
|
|
--
|
|
DELETE FROM `format_test` WHERE 0;
|
|
|