code: function compileCallback(callback, method) {
      var client = this.client;
  
      // Build the callback
      var builder = client.queryBuilder();
      callback.call(builder, builder);
  
      // Compile the callback, using the current formatter (to track all bindings).
      var compiler = client.queryCompiler(builder);
      compiler.formatter = this;
  
      // Return the compiled & parameterized sql.
      return compiler.toSQL(method || 'select');
    }
docs: Compiles a callback using the query builder.