@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
11 lines (10 loc) • 514 B
TypeScript
import type { Field, RawField } from '@directus/types';
import type { Knex } from 'knex';
import type { GeoJSONGeometry } from 'wellknown';
import { GeometryHelper } from '../types.js';
export declare class GeometryHelperPostgres extends GeometryHelper {
supported(): Promise<boolean>;
createColumn(table: Knex.CreateTableBuilder, field: RawField | Field): Knex.ColumnBuilder;
_intersects_bbox(key: string, geojson: GeoJSONGeometry): Knex.Raw;
asGeoJSON(table: string, column: string): Knex.Raw;
}