@uwdata/mosaic-core
Version:
Scalable and extensible linked data views.
26 lines • 1.07 kB
TypeScript
import type { Coordinator } from '../Coordinator.js';
import type { FieldInfoRequest, FieldInfo } from '../types.js';
export declare const Count = "count";
export declare const Nulls = "nulls";
export declare const Max = "max";
export declare const Min = "min";
export declare const Distinct = "distinct";
export declare const Stats: {
Count: string;
Nulls: string;
Max: string;
Min: string;
Distinct: string;
};
/**
* Queries information about fields of a table.
* If the `fields` array contains a single field with the column set to '*',
* the function will retrieve and return the table information using `getTableInfo`.
* Otherwise, it will query individual field information using `getFieldInfo`
* for each field in the `fields` array.
* @param mc A Mosaic coordinator.
* @param fields Array of field information requests.
* @returns Promise resolving to array of field information.
*/
export declare function queryFieldInfo(mc: Coordinator, fields: FieldInfoRequest[]): Promise<FieldInfo[]>;
//# sourceMappingURL=field-info.d.ts.map