Skip to content

@xtandard/links/analytics/analytics-engine

Cloudflare Workers Analytics Engine sink: writeDataPoint through the dataset binding, queries through the Analytics Engine SQL API with _sample_interval weighting.

import { … } from "@xtandard/links/analytics/analytics-engine";
Name Summary
analyticsEngineDialect The SQL dialect over the data point layout.
createAnalyticsEngine Create a Workers Analytics Engine-backed AnalyticsSink.
toDataPoint Map an event to its data point (see the module docs for the layout).
Name Summary
AnalyticsEngineDataset The Workers Analytics Engine dataset binding (structural; no workers-types needed).
AnalyticsEngineOptions Options for createAnalyticsEngine.
AnalyticsEngineSink The Analytics Engine sink (events is available; deleteLink is not).
SqlBinder How values get into a statement: bound parameters or escaped literals.
SqlDialect Column expressions and engine quirks for one backend.
Name Summary
ANALYTICS_ENGINE_BLOBS Blob column per dimension (see the module docs).