title: How to show generated SQL / raw SQL in TypeORM queryBuilder
body: <p>I developed <code>typeorm</code> <code>querybuilder</code>. For the purpose of debugging, I'd like to show the generated SQL query.</p>
  <p>I tested <code>printSql()</code> method, but it didn't show any SQL query.</p>
  <pre><code>const Result = await this.attendanceRepository
    .createQueryBuilder(&quot;attendance&quot;)
    .innerJoin(&quot;attendance.child&quot;, &quot;child&quot;)
    .select([&quot;attendance.childId&quot;,&quot;child.class&quot;,&quot;CONCAT(child.firstName, child.lastName)&quot;])
    .where(&quot;attendance.id= :id&quot;, { id: id })
    .printSql()
    .getOne()
  
  console.log(Result);
  </code></pre>
  <p>It returned the following:</p>
  <pre><code>Attendance { childId: 4, child: Child { class: 'S' } }
  </code></pre>
  <p>My desired result is to get the generated SQL query.</p>
  <p>Is there any wrong point? Is there any good way to get the SQL query?</p>