Added database connection from Turso to Astro DB.#48
Draft
essential-randomness wants to merge 1 commit intomainfrom
Draft
Added database connection from Turso to Astro DB.#48essential-randomness wants to merge 1 commit intomainfrom
essential-randomness wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| `); | ||
|
|
||
| // Extract rows from the result | ||
| const blorboEntries: BlorboEntry[] = result.rows as unknown as BlorboEntry[]; |
Member
Author
There was a problem hiding this comment.
I'm not 100% sure you should cast here. In theory, you should be able to get the type directly from the query, and if this cast is right then it should match BlorboEntry. Is your VSCode or whatever editor set up so you can check the TypeScript types?
If you want to change the type, you should map over the entry and put them in the right order.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Making a draft pull request so I can leave comments