Libraries
    Preparing search index...
    • Creates the ClickHouse logs table with a recommended schema.

      Parameters

      • connection: any

        knex-clickhouse connection

      • tableName: string

        name for the logs table

      • Optionaloptions: CreateLogsTableOptions

        DDL options (engine, partitioning, TTL)

      Returns Promise<void>

      await createLogsTable(ch, 'application_logs', {
      ttl: 'timestamp + INTERVAL 90 DAY',
      });