File tree Expand file tree Collapse file tree
language-support/contextual Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,17 +33,6 @@ export interface ResultSetSchema {
3333 pagination ?: PaginationInfo ;
3434}
3535
36- export function getResultSetSchema (
37- resultSetName : string ,
38- resultSets : BQRSInfo ,
39- ) : ResultSetSchema | undefined {
40- for ( const schema of resultSets [ "result-sets" ] ) {
41- if ( schema . name === resultSetName ) {
42- return schema ;
43- }
44- }
45- return undefined ;
46- }
4736interface PaginationInfo {
4837 "step-size" : number ;
4938 offsets : number [ ] ;
Original file line number Diff line number Diff line change 55import {
66 ColumnKindCode ,
77 EntityValue ,
8- getResultSetSchema ,
98 ResultSetSchema ,
109} from "../../common/bqrs-cli-types" ;
1110import { CodeQLCliServer } from "../../codeql-cli/cli" ;
@@ -99,7 +98,9 @@ async function getLinksFromResults(
9998 const localLinks : FullLocationLink [ ] = [ ] ;
10099 const bqrsPath = outputDir . bqrsPath ;
101100 const info = await cli . bqrsInfo ( bqrsPath ) ;
102- const selectInfo = getResultSetSchema ( SELECT_QUERY_NAME , info ) ;
101+ const selectInfo = info [ "result-sets" ] . find (
102+ ( schema ) => schema . name === SELECT_QUERY_NAME ,
103+ ) ;
103104 if ( isValidSelect ( selectInfo ) ) {
104105 // TODO: Page this
105106 const allTuples = await cli . bqrsDecode ( bqrsPath , SELECT_QUERY_NAME ) ;
You can’t perform that action at this time.
0 commit comments