File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,13 +98,13 @@ export class SQLJobManager {
98
98
* of arrays. When set to false, data is returned as an array of objects (compatible with legacy API).
99
99
* @returns
100
100
*/
101
- async runSQL < T > ( query : string , parameters : any [ ] = [ ] , isTerseResults : boolean = false ) : Promise < T [ ] > {
101
+ async runSQL < T > ( query : string , opts ?: QueryOptions ) : Promise < T [ ] > {
102
102
103
103
// 2147483647 is NOT arbitrary. On the server side, this is processed as a Java
104
104
// int. This is the largest number available without overflow (Integer.MAX_VALUE)
105
105
const rowsToFetch = 2147483647 ;
106
106
107
- const statement = await this . getPagingStatement < T > ( query , { parameters : parameters , isTerseResults : isTerseResults } ) ;
107
+ const statement = await this . getPagingStatement < T > ( query , opts ) ;
108
108
const results = await statement . run ( rowsToFetch ) ;
109
109
statement . close ( ) ;
110
110
return results . data ;
You can’t perform that action at this time.
0 commit comments