| 354 | } |
| 355 | |
| 356 | function getExecuteRequest(options, meta, params) { |
| 357 | meta = meta || { |
| 358 | resultId: utils.allocBufferFromString('R1'), |
| 359 | columns: [ { type: { code: types.dataTypes.int } }, { type: { code: types.dataTypes.int } } ] |
| 360 | }; |
| 361 | |
| 362 | options = options || {}; |
| 363 | const execOptions = ExecutionOptions.empty(); |
| 364 | execOptions.getKeyspace = () => options && options.keyspace; |
| 365 | |
| 366 | return new ExecuteRequest('Q1', utils.allocBufferFromString('Q1'), params || [ 1, 2], execOptions, meta); |
| 367 | } |
| 368 | |
| 369 | function getStringBuffer(value) { |
| 370 | const buffer = utils.allocBuffer(value.length + 2); |