Show records count when hydrating db

This commit is contained in:
Jonathan Staab 2023-02-13 17:59:27 -06:00
parent 911102fbd5
commit 574c889875

View File

@ -230,7 +230,9 @@ const defineTable = (name: string, pk: string, opts: TableOpts = {}): Table => {
setAndNotify(initialData)
}
log(`Table ${name} ready in ${Date.now() - t}ms`)
const recordsCount = Object.keys(initialData).length
log(`Table ${name} ready in ${Date.now() - t}ms (${recordsCount} records)`)
ready.set(true)
})()