import { collectDependencies } from '../detection-utils.js';
const SCYLLA_DEPS = ['scylladb', '@scylladb/driver', 'scylla-driver'];
const CASSANDRA_DEPS = [
    'cassandra-driver',
    'datastax-driver-core',
    'cassandra',
    'datastax',
    'gocql',
];
const CLICKHOUSE_DEPS = [
    '@clickhouse/client',
    'clickhouse-connect',
    'clickhouse',
    'clickhouse-driver',
    'clickhouse-rs',
];
const HBASE_DEPS = ['hbase', 'hbase-client', 'happybase', 'hbase-rpc-client'];
export async function detectWideColumnDb(projectPath) {
    const deps = await collectDependencies(projectPath);
    // ScyllaDB (Cassandra-compatible but more specific)
    if (SCYLLA_DEPS.some((d) => deps.has(d))) {
        return 'scylladb';
    }
    // Cassandra
    if (CASSANDRA_DEPS.some((d) => deps.has(d))) {
        return 'cassandra';
    }
    // ClickHouse
    if (CLICKHOUSE_DEPS.some((d) => deps.has(d))) {
        return 'clickhouse';
    }
    // HBase
    if (HBASE_DEPS.some((d) => deps.has(d))) {
        return 'hbase';
    }
    return null;
}
//# sourceMappingURL=widecolumn-db-detector.js.map