Libraries
    Preparing search index...

    Interface CreateLogsTableOptions

    Options for creating the ClickHouse logs table.

    interface CreateLogsTableOptions {
        engine?: string;
        orderBy?: string[];
        partitionBy?: string;
        ttl?: string;
    }
    Index

    Properties

    engine?: string

    Table engine.

    'MergeTree'
    
    orderBy?: string[]

    ORDER BY columns.

    ['timestamp', 'level']
    
    partitionBy?: string

    Partition expression.

    "toYYYYMM(timestamp)"
    
    ttl?: string

    TTL expression for automatic data expiration.