This commit is contained in:
2026-03-29 10:26:38 -05:00
parent 05d4f6e78b
commit b1c99893a6
1628 changed files with 67782 additions and 60143 deletions

View File

@@ -1,19 +1,19 @@
const { openDatabase, all, closeDatabase, getDefaultDbPath } = require('./server/lib/sqlite');
const { getPlants } = require('./server/lib/plants');
async function main() {
let db;
try {
db = await openDatabase();
const plants = await getPlants(db, { limit: 500 });
console.log(JSON.stringify(plants, null, 2));
} catch (error) {
console.error(error);
process.exit(1);
} finally {
if (db) await closeDatabase(db);
}
}
main();
const { openDatabase, all, closeDatabase, getDefaultDbPath } = require('./server/lib/sqlite');
const { getPlants } = require('./server/lib/plants');
async function main() {
let db;
try {
db = await openDatabase();
const plants = await getPlants(db, { limit: 500 });
console.log(JSON.stringify(plants, null, 2));
} catch (error) {
console.error(error);
process.exit(1);
} finally {
if (db) await closeDatabase(db);
}
}
main();