@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
23 lines • 758 B
TypeScript
import { CastNode } from '../ast/cast.js';
/**
* Perform a type cast.
* @param expr The expression to type cast.
* @param type The type to cast to.
*/
export declare function cast(expr: unknown, type: string): CastNode;
/**
* Cast an expression to a 32-bit integer type.
* @param expr The expression to type cast.
*/
export declare function int32(expr: unknown): CastNode;
/**
* Cast an expression to a 32-bit floating point number type.
* @param expr The expression to type cast.
*/
export declare function float32(expr: unknown): CastNode;
/**
* Cast an expression to a 64-bit floating point number type.
* @param expr The expression to type cast.
*/
export declare function float64(expr: unknown): CastNode;
//# sourceMappingURL=cast.d.ts.map