Huakun Shen fdeaa0f03e
init
2025-01-18 03:53:22 -05:00

19 lines
544 B
TypeScript

import { SQLiteBrowser } from './dao.ts';
const browser = new SQLiteBrowser();
browser.init('kk.dev.db');
// Get all tables
const tables = browser.getTables();
console.log('Tables in database:', tables);
// Get extensions table columns
const extensionColumns = browser.getTableColumns('extensions');
console.log('Extension columns:', extensionColumns);
// Get extensions data with pagination
const extensionsData = browser.getTableData('extensions', { page: 1, pageSize: 10 });
console.log('Extensions:', extensionsData);
browser.close();