plywood
Version:
A query planner and executor
24 lines • 1.2 kB
TypeScript
import { Duration, Timezone } from 'chronoshift';
import { PlywoodValue } from '../datatypes';
import { SQLDialect } from '../dialect/baseDialect';
import { ChainableExpression, Expression, ExpressionJS, ExpressionValue } from './baseExpression';
import { HasTimezone } from './mixins/hasTimezone';
import { TimeBucketExpression } from './timeBucketExpression';
export declare class TimeFloorExpression extends ChainableExpression implements HasTimezone {
static op: string;
static fromJS(parameters: ExpressionJS): TimeFloorExpression;
duration: Duration;
timezone: Timezone;
constructor(parameters: ExpressionValue);
valueOf(): ExpressionValue;
toJS(): ExpressionJS;
equals(other: TimeBucketExpression | undefined): boolean;
protected _toStringParameters(_indent?: int): string[];
protected _calcChainableHelper(operandValue: any): PlywoodValue;
protected _getSQLChainableHelper(dialect: SQLDialect, operandSQL: string): string;
alignsWith(ex: Expression): boolean;
specialSimplify(): Expression;
getTimezone: () => Timezone;
changeTimezone: (timezone: Timezone) => TimeFloorExpression;
}
//# sourceMappingURL=timeFloorExpression.d.ts.map