@eggjs/dal-runtime
Version:
tegg dal decorator
29 lines (28 loc) • 1.21 kB
TypeScript
import { ColumnModel } from '@eggjs/tegg/dal';
import { ColumnType } from '@eggjs/tegg-types';
import type { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from '@eggjs/tegg-types';
export declare class TemplateUtil {
static isSpatialType(columnModel: ColumnModel): boolean;
static importPath(tableModelPath: string, currentPath: string): string;
static dbTypeToTsType(columnType: ColumnType): string;
static toJson(value: any): string;
static toPoint(point: Point): string;
static toLine(val: Line): string;
static toPolygon(val: Polygon): string;
static toGeometry(val: Geometry): string;
static toMultiPoint(val: MultiPoint): string;
static toMultiLine(val: MultiLine): string;
static toMultiPolygon(val: MultiPolygon): string;
static toGeometryCollection(val: GeometryCollection): string;
static spatialFilter: {
POINT: string;
LINESTRING: string;
POLYGON: string;
GEOMETRY: string;
MULTIPOINT: string;
MULTILINESTRING: string;
MULTIPOLYGON: string;
GEOMETRYCOLLECTION: string;
};
static getSpatialFilter(columnType: ColumnType): any;
}