mirror of
https://github.com/d0zingcat/alert-message-center.git
synced 2026-05-14 07:26:44 +00:00
10 lines
289 B
TypeScript
10 lines
289 B
TypeScript
import { Database } from 'bun:sqlite';
|
|
const db = new Database('dev.db');
|
|
try {
|
|
const query = db.query("SELECT * FROM topics");
|
|
const topics = query.all();
|
|
console.log('Topics:', JSON.stringify(topics, null, 2));
|
|
} catch (e) {
|
|
console.error('Error querying topics:', e);
|
|
}
|