const sql = connection.createQueryBuilder() .select("user") .from(User, "user") .where("user.id = :id", { id: 1 }) .getSql();