Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.604 kb
WritableTrackingBuffer = require('./tracking-buffer/tracking-buffer').WritableTrackingBuffer
writeAllHeaders = require('./all-headers').writeToTrackingBuffer
###
s2.2.6.6
###
class SqlBatchPayload
constructor: (@sqlText, txnDescriptor) ->
outstandingRequestCount = 1
buffer = new WritableTrackingBuffer(100 + (2 * @sqlText.length), 'ucs2')
writeAllHeaders(buffer, txnDescriptor, outstandingRequestCount)
buffer.writeString(@sqlText, 'ucs2')
@data = buffer.data
toString: (indent) ->
indent ||= ''
indent + "SQL Batch - #{@sqlText}"
module.exports = SqlBatchPayload
Jump to Line
Something went wrong with that request. Please try again.