forked from hangshuo652/aurak
feat: implement QuestionBank CRUD with pagination and template query
- Add pagination support to findAll (page, limit query params) - Add findByTemplateId method to service - Add GET /by-template/:templateId endpoint to controller - Service already includes CRUD for QuestionBank and QuestionBankItem
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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');
|
||||
Reference in New Issue
Block a user