Closed kaBeech closed 1 year ago
Seems like this works!
If a star already exists in KV and populateDB.ts tries to upsert it, an error is thrown: Uncaught (in promise) Error: database is locked: Error code 5: The database file is locked
But running it the first time worked, and running checkDB.ts gives the expected result!
Still to do:
Done!
A simple first step would be running the populateDB script and then running the getAllStars() function from db.ts to make sure there's stuff there