Plugin for data backfill operations in chkit.
Part of the chkit monorepo. This plugin extends the chkit CLI with data backfill commands.
bun add -d @chkit/plugin-backfillRegister the plugin in your config:
// clickhouse.config.ts
import { defineConfig } from '@chkit/core'
import { backfill } from '@chkit/plugin-backfill'
export default defineConfig({
schema: './src/db/schema/**/*.ts',
outDir: './chkit',
plugins: [
backfill(),
],
clickhouse: {
url: process.env.CLICKHOUSE_URL ?? 'http://localhost:8123',
},
})See the chkit documentation.