Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (16 sloc) 0.604 kb
c0e380c @pekim Write AllHeaders to a supplied tracking buffer, instead of creating a se...
authored
1 WritableTrackingBuffer = require('./tracking-buffer/tracking-buffer').WritableTrackingBuffer
2 writeAllHeaders = require('./all-headers').writeToTrackingBuffer
51c10aa @pekim Create and send SQL_BATCH packet (for a simple test statement).
authored
3
4 ###
5 s2.2.6.6
6 ###
7 class SqlBatchPayload
5fb8c9a @pekim Partial support for transaction descriptor identifiers.
authored
8 constructor: (@sqlText, txnDescriptor) ->
51c10aa @pekim Create and send SQL_BATCH packet (for a simple test statement).
authored
9 outstandingRequestCount = 1
10
c0e380c @pekim Write AllHeaders to a supplied tracking buffer, instead of creating a se...
authored
11 buffer = new WritableTrackingBuffer(100 + (2 * @sqlText.length), 'ucs2')
12 writeAllHeaders(buffer, txnDescriptor, outstandingRequestCount)
13 buffer.writeString(@sqlText, 'ucs2')
d7dd319 @pekim A very crude performance test.
authored
14
c0e380c @pekim Write AllHeaders to a supplied tracking buffer, instead of creating a se...
authored
15 @data = buffer.data
51c10aa @pekim Create and send SQL_BATCH packet (for a simple test statement).
authored
16
17 toString: (indent) ->
18 indent ||= ''
19 indent + "SQL Batch - #{@sqlText}"
20
21 module.exports = SqlBatchPayload
Something went wrong with that request. Please try again.