Comparing version 0.6.1 to 0.6.2
/// <reference types="node" /> | ||
import * as fs from 'fs'; | ||
import { Log } from 'loghandler'; | ||
import { Options, Sequelize } from 'sequelize'; | ||
import { Dialect, Options, Sequelize } from 'sequelize'; | ||
import immer from 'immer'; | ||
@@ -17,2 +17,3 @@ import { Models } from './interfaces/model'; | ||
export interface DatabaseConfig extends EnabledService, Options { | ||
readonly dialect: Dialect; | ||
readonly folder: { | ||
@@ -19,0 +20,0 @@ readonly migrations: string; |
@@ -7,3 +7,3 @@ "use strict"; | ||
define: joi.object().optional(), | ||
dialect: joi.valid('mysql', 'postgres', 'sqlite', 'mariadb', 'mssql').optional(), | ||
dialect: joi.valid('mysql', 'postgres', 'sqlite', 'mariadb', 'mssql').required(), | ||
dialectModule: joi.object().optional(), | ||
@@ -22,3 +22,3 @@ dialectModulePath: joi.string().optional(), | ||
isolationLevel: joi.string().optional(), | ||
models: joi.array().items().required(), | ||
models: joi.object().required(), | ||
native: joi.boolean().optional(), | ||
@@ -25,0 +25,0 @@ omitNull: joi.boolean().optional(), |
{ | ||
"name": "apistart", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Fully tested and strongly typed nodeJS framework to create microservices lightning fast!", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
460121
5646