Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | /**
* Type utility helpers and type-level operations
* Pure type definitions and type-level utilities
*/
import type { SQL, AnyColumn } from 'drizzle-orm'
import type { QueryContext } from './cube'
/**
* Type-level utility to extract the schema type from a cube reference
* Since we removed generics, this now returns 'any'
*/
export type ExtractSchemaFromCubeRef = any
/**
* Type for SQL expressions that can be functions or direct values
*/
export type SqlExpression =
| AnyColumn
| SQL
| ((ctx: QueryContext) => AnyColumn | SQL)
|