Память и сейф: первый публичный выпуск 1.0.0
This commit is contained in:
commit
85ecb086fb
16 changed files with 2811 additions and 0 deletions
7
tests/check-local.mjs
Normal file
7
tests/check-local.mjs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { DatabaseSync } from 'node:sqlite'
|
||||
|
||||
const db = new DatabaseSync('C:/Users/denis/.dsh/memory/memory.sqlite')
|
||||
const row = db.prepare("select id, substr(body, 1, 40) as body from memory_entries where id = 'mem-658a012c'").get()
|
||||
console.log('test note present:', JSON.stringify(row ?? null))
|
||||
console.log('collections:', db.prepare('select collection, count(*) as n from memory_entries group by collection').all().map(r => `${r.collection}=${r.n}`).join(', '))
|
||||
console.log('fts exists:', db.prepare("select count(*) as n from sqlite_master where name = 'memory_entries_fts'").get().n === 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue