UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

17 lines (15 loc) 742 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlreadyHasActiveConnectionError = void 0; const TypeORMError_1 = require("./TypeORMError"); /** * Thrown when consumer tries to recreate connection with the same name, but previous connection was not closed yet. */ class AlreadyHasActiveConnectionError extends TypeORMError_1.TypeORMError { constructor(connectionName) { super(`Cannot create a new connection named "${connectionName}", because connection with such name ` + `already exist and it now has an active connection session.`); } } exports.AlreadyHasActiveConnectionError = AlreadyHasActiveConnectionError; //# sourceMappingURL=AlreadyHasActiveConnectionError.js.map