const Database = require('better-sqlite3');

function check(path) {
    try {
        const db = new Database(path);
        const tableInfo = db.prepare('PRAGMA table_info(assessment_sessions)').all();
        console.log(`PATH: ${path}`);
        console.log(tableInfo.map(c => c.name).join(', '));
        db.close();
    } catch (e) {
        console.log(`PATH: ${path} (ERROR: ${e.message})`);
    }
}

check('d:/workspace/AuraK/server/metadata.db');
check('d:/workspace/AuraK/data/metadata.db');
check('d:/workspace/AuraK/server/data/metadata.db');
