UNPKG

@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

26 lines (25 loc) 758 B
import { CandlestickAggregateOptions, TimeRange, WhereClause } from '@timescaledb/schemas'; export declare class CandlestickAggregateBuilder { private statements; private options; private tableName; constructor(tableName: string, options: CandlestickAggregateOptions); private buildWhere; build({ where, range }?: { where?: WhereClause; range?: TimeRange; }): { sql: string; params: any[]; }; } export interface CandlestickMetadata { propertyName: string; timeColumn?: string; priceColumn?: string; volumeColumn?: string; sourceColumn?: string; } export declare class CandlestickBuilder { static generateSQL(metadata: CandlestickMetadata, isRollup?: boolean): string; }