https://github.com/linhx/typeorm-dynamic-table-name-sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // eslint-disable | |
| (function (global, factory) { | |
| typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | |
| typeof define === 'function' && define.amd ? define(['exports'], factory) : | |
| (factory((global.L = {}))); | |
| }(this, (function (exports) { | |
| 'use strict'; | |
| var version = "1.5.1+HEAD.2e3e0ff"; | |
| var freeze = Object.freeze; | |
| Object.freeze = function (obj) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE PROCEDURE [dbo].[spCloneTableStructure] | |
| @SourceSchema nvarchar(255), | |
| @SourceTable nvarchar(255), | |
| @DestinationSchema nvarchar(255), | |
| @DestinationTable nvarchar(255), | |
| @RecreateIfExists bit = 0 | |
| AS | |
| BEGIN | |
| SET NOCOUNT ON; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # logging | |
| log.folder=./log-folder | |
| log.file.rolling.maxsize=10MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as winston from 'winston'; | |
| import safeStringify from 'fast-safe-stringify'; | |
| const { combine, timestamp, errors, printf } = winston.format; | |
| // tslint:disable-next-line:no-shadowed-variable | |
| const format = printf(({ timestamp, level, label, message, stack, ...others }: | |
| { timestamp: string, level: string, label: string, message: any, stack: any, others: { [key in symbol]: string } }) => { | |
| const namespace = label ? `(${label})` : ''; | |
| const errStack = stack ? `\n${stack}` : ''; |