synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
12 lines (11 loc) • 700 B
TypeScript
import { SelectColumn, Row } from '../synapseTypes';
export declare type KeyValue = {
[index: string]: string;
};
export declare type SQLOperator = 'LIKE' | '=' | 'HAS';
export declare const isGroupByInSql: (sql: string) => boolean;
export declare const getWhereInsertIndex: (tokens: string[][]) => number;
export declare const insertConditionsFromSearchParams: (sql: string, searchParams?: KeyValue | undefined, operator?: SQLOperator) => string;
export declare const formatSQLFromParser: (tokens: string[][]) => string;
export declare const parseEntityIdFromSqlStatement: (sql: string) => string;
export declare const resultToJson: <T>(headerColumns: SelectColumn[], rowColumns: Row[]) => T[];