typeorm display sql code example
Example: typeorm tosql
const sql = connection.createQueryBuilder()
.select("user")
.from(User, "user")
.where("user.id = :id", { id: 1 })
.getSql();
const sql = connection.createQueryBuilder()
.select("user")
.from(User, "user")
.where("user.id = :id", { id: 1 })
.getSql();