Choose the package that matches the SQL surface you need:
@cereusdb/minimal@cereusdb/standard@cereusdb/global@cereusdb/fullnpm install @cereusdb/standard
import { CereusDB } from '@cereusdb/standard';
const db = await CereusDB.create();
const rows = await db.sqlJSON(`
SELECT ST_AsText(
ST_Transform(
ST_GeomFromWKT('POINT(13.4 52.5)'),
'EPSG:4326',
'EPSG:3857'
)
) AS geom
`);
await db.registerRemoteParquet('cities', 'https://example.com/cities.parquet');
db.registerGeoJSON('regions', geojsonObject);
@cereusdb/full additionally supports:
db.registerGeoTIFF('raster', bytes);
db.registerRaster('raster', bytes, 'geotiff');