@timescaledb/core
Version:
The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T
21 lines (20 loc) • 566 B
TypeScript
import { TimeBucketConfig, TimeRange, WhereClause } from '@timescaledb/schemas';
export declare class TimeBucketBuilder {
private statements;
private metricStatements;
private tableName;
private timeColumn;
private interval;
private metrics;
private params;
constructor(tableName: string, timeColumn: string, config: TimeBucketConfig);
private buildMetrics;
private buildWhere;
build({ where, range }: {
where?: WhereClause;
range: TimeRange;
}): {
sql: string;
params: any[];
};
}