UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL, MongoDB databases.

28 lines (26 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Primary key from the database stored in this class. */ var TablePrimaryKey = /** @class */ (function () { // ------------------------------------------------------------------------- // Constructor // ------------------------------------------------------------------------- function TablePrimaryKey(name, columnName) { this.name = name; this.columnName = columnName; } // ------------------------------------------------------------------------- // Public Methods // ------------------------------------------------------------------------- /** * Creates a new copy of this primary key with exactly same properties. */ TablePrimaryKey.prototype.clone = function () { return new TablePrimaryKey(this.name, this.columnName); }; return TablePrimaryKey; }()); exports.TablePrimaryKey = TablePrimaryKey; //# sourceMappingURL=TablePrimaryKey.js.map