UNPKG

sql-code-generator

Version:

Generate code from your SQL schema and queries for type safety and development speed.

26 lines 1.25 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getConfig = void 0; const readConfig_1 = require("./readConfig"); /* 1. read the config 2. validate the config */ const getConfig = (_a) => __awaiter(void 0, [_a], void 0, function* ({ configPath, }) { // 1. read the config const config = yield (0, readConfig_1.readConfig)({ filePath: configPath }); // 2. validate the config; TODO: // 3. return the config, since valid return config; }); exports.getConfig = getConfig; //# sourceMappingURL=getConfig.js.map