This file contains 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
function formatter(format) { | |
var findpatt = /:(\w+?):/g | |
var format = format.replace(findpatt, '"+data["$1"]+"'); | |
eval('var nfun = function(data) {'+ | |
'return "'+format+'";'+ | |
"};") | |
return nfun; | |
} |
This file contains 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 { createConnection, Connection, PrimaryColumn } from "typeorm"; | |
import { Entity, Column } from "typeorm"; | |
@Entity() | |
export class Test { | |
@PrimaryColumn("integer") | |
id!: string; | |
} | |
async function longQuery(connection: Connection) { |
This file contains 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 { createConnection, Connection, PrimaryColumn } from "typeorm"; | |
import { Entity, Column } from "typeorm"; | |
@Entity() | |
export class Test { | |
@PrimaryColumn("integer") | |
id!: string; | |
} | |
function sleep(ms: number) { |