UNPKG

@ultipa-graph/ultipa-driver

Version:

NodeJS SDK for Ultipa GQL

34 lines (33 loc) 1.05 kB
/** * Pretty printers for GQLDB data types. */ import { Schema, Table as DataTable } from './types'; import { Response, Node, Edge, Path } from './response'; /** * Print nodes in tabular format grouped by schema. */ export declare function printNodes(nodes: Node[], schemas?: Map<string, Schema>): string; /** * Print nodes deriving schema from data. */ export declare function printNodesWithoutSchema(nodes: Node[]): string; /** * Print edges in tabular format grouped by schema. */ export declare function printEdges(edges: Edge[], schemas?: Map<string, Schema>): string; /** * Print edges deriving schema from data. */ export declare function printEdgesWithoutSchema(edges: Edge[]): string; /** * Print paths with node-edge sequence notation. */ export declare function printPaths(paths: Path[]): string; /** * Print generic table data. */ export declare function printTable(dataTable: DataTable): string; /** * Auto-detect type from Response and print accordingly. */ export declare function printAny(resp: Response): string;