lib/formatter.js
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');
  }
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');
  }
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' ) ; }
Compiles a callback using the query builder.
Compiles a callback using the query builder .