UNPKG

lubejs-mssql

Version:

The lubejs driver for mssql.

29 lines (28 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MssqlDbProvider = exports.DIALECT = void 0; const connection_1 = require("./connection"); const sqlifier_1 = require("./sqlifier"); exports.DIALECT = 'mssql'; class MssqlDbProvider { constructor(sqlOptions) { this.dialect = exports.DIALECT; this.sqlifier = new sqlifier_1.MssqlSqlifier(sqlOptions); } getSchemaComparator() { throw new Error('This is a orm use kind, Pls import the full node module `lubejs-mssql`.'); } getMigrateBuilder() { throw new Error('This is a orm use kind, Pls import the full node module `lubejs-mssql`.'); } /** * 获取一个新的连接 */ getConnection(options) { return new connection_1.MssqlConnection(this, options); } getSchemaLoader(connection) { throw new Error(`SchemaLoader is the functional by full pack, pls use 'import 'lubejs' if want to use it.`); } } exports.MssqlDbProvider = MssqlDbProvider;