prep events partition

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-07-19 22:08:22 +02:00
parent ddc2ce338f
commit 3993b493e3
27 changed files with 136 additions and 71 deletions

View File

@@ -1,3 +1,5 @@
import { TABLE_NAMES } from './clickhouse-client';
export interface SqlBuilderObject {
where: Record<string, string>;
having: Record<string, string>;
@@ -15,7 +17,7 @@ export function createSqlBuilder() {
const sb: SqlBuilderObject = {
where: {},
from: 'events',
from: TABLE_NAMES.events,
select: {},
groupBy: {},
orderBy: {},