@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
35 lines (34 loc) • 1.06 kB
TypeScript
import { CreateHypertableOptions, TimeBucketConfig } from '@timescaledb/schemas';
import { CompressionBuilder } from './compression';
import { TimeBucketBuilder } from './time-bucket';
declare class HypertableUpBuilder {
private options;
private name;
private statements;
constructor(name: string, options: CreateHypertableOptions);
build(): string;
}
declare class HypertableDownBuilder {
private name;
private options;
private statements;
constructor(name: string, options: CreateHypertableOptions);
build(): string;
}
export declare class HypertableInspectBuilder {
private name;
private statements;
constructor(name: string);
build(): string;
}
export declare class Hypertable {
private options;
private name;
constructor(name: string, options: CreateHypertableOptions);
up(): HypertableUpBuilder;
down(): HypertableDownBuilder;
inspect(): HypertableInspectBuilder;
compression(): CompressionBuilder;
timeBucket(config: TimeBucketConfig): TimeBucketBuilder;
}
export {};