kaBeech / star-crossed

A tool for finding a special spot in the universe
https://kabeech.com/fun/star-crossed
MIT License
0 stars 0 forks source link

Make sure Deno KV works #5

Closed kaBeech closed 1 year ago

kaBeech commented 1 year ago

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

kaBeech commented 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!

kaBeech commented 1 year ago

Still to do:

kaBeech commented 1 year ago

Done!