title: Get raw sql string in Sql Kata
body: <p>I am using SqlKata purely to build sql queries in C#. I am wanting to take the output of my built up <code>Query</code>, get the raw (compiled) sql string, and execute it against SQL.</p>
  
  <p>I thought this would do it:</p>
  
  <pre><code>var factory = new QueryFactory(null, new SqlServerCompiler());
  var query = new Query();
  ...
  var sqlText = factory.Compiler.Compile(query).Sql;
  </code></pre>
  
  <p>But this gives this:</p>
  
  <pre><code>SELECT TOP (@p0) [AllStarFull].[GameNumber], [AllStarFull].[LeagueId], [AllStarFull].[PlayedInGame] FROM [AllStarFull]
  </code></pre>
  
  <p>This throws an exception because <code>(@p0)</code> is a param, and not the actual value.</p>
  
  <p>In the documentation, it mentions to bring in <code>Logger</code> but I don't really need logging functionality (right now).</p>
  
  <p><a href="https://sqlkata.com/docs/execution/logging" rel="noreferrer">https://sqlkata.com/docs/execution/logging</a></p>
  
  <pre><code>var db = new QueryFactory(connection, new SqlServerCompiler());
  
  // Log the compiled query to the console
  db.Logger = compiled =&gt; {
      Console.WriteLine(compiled.ToString());
  };
  
  var users = db.Query("Users").Get();
  </code></pre>
  
  <p>Is there anyway to get the raw sql string from the <code>Query</code> with all params populated?</p>