@technicity/data-service-generator 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,7 +15,7 @@ const TSqlString = require("tsqlstring");
|
|
|
15
15
|
const json_schema_to_typescript_1 = require("json-schema-to-typescript");
|
|
16
16
|
const getDuplicates_1 = require("../lib/getDuplicates");
|
|
17
17
|
const isNotNullOrUndefined_1 = require("../lib/isNotNullOrUndefined");
|
|
18
|
-
const
|
|
18
|
+
const MySQL_1 = require("../runtime/lib/MySQL");
|
|
19
19
|
// json-schema-to-typescript inlines everything. We don't want that,
|
|
20
20
|
// so use `tsType`, and add imports manually.
|
|
21
21
|
// https://github.com/bcherny/json-schema-to-typescript#custom-schema-properties
|
|
@@ -138,7 +138,7 @@ exports.generate = generate;
|
|
|
138
138
|
function init(input) {
|
|
139
139
|
const { database, user, password, host, port, server } = input;
|
|
140
140
|
if (dialect === "mysql") {
|
|
141
|
-
let mysql = new
|
|
141
|
+
let mysql = new MySQL_1.MySQL({
|
|
142
142
|
user,
|
|
143
143
|
password,
|
|
144
144
|
host,
|
|
File without changes
|
|
File without changes
|