11 | {tableHeadings.map((heading) => (
12 |
13 | {heading}
14 |
15 | ))}
16 | {tokens.map(({ token, tokenType, position }) => (
17 |
18 | {token}
19 | {tokenType}
20 |
21 | {position.line}:{position.startCharacter}
22 |
23 |
24 | ))}
25 |
26 | );
27 | }
28 |
--------------------------------------------------------------------------------
/packages/query-tools/src/types/sdkTypes.ts:
--------------------------------------------------------------------------------
1 | import type { QueryConfig, ResultSummary } from 'neo4j-driver';
2 |
3 | export type DbType = 'system' | 'standard' | 'composite';
4 |
5 | export type QueryType =
6 | // Query automatically run by the app.
7 | | 'system'
8 | // Query the user directly submitted to/through the app.
9 | | 'user-direct'
10 | // Query resulting from an action the user performed.
11 | | 'user-action'
12 | // Query that has been derived from the user input.
13 | | 'user-transpiled';
14 |
15 | export type CypherTransactionMetadata = {
16 | app: 'neo4j-sdk';
17 | type: QueryType;
18 | version?: string;
19 | };
20 |
21 | export type ExtendedQueryConfig