Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello sir how to fetch value from database sqlite in react . how to get value #3

Open
Rajkumarmagar opened this issue Sep 5, 2022 · 2 comments

Comments

@Rajkumarmagar
Copy link

Hello sir

How to fetch values from data base sqlite.
value is inserted .but how to fetch value from sqlite database

i write that line but how to fetch
const rows = await db.select<Array<{ name: string }>>('SELECT name FROM users WHERE age > ?', [20])

help me . please . me .
thank you .

@heng30
Copy link

heng30 commented Nov 26, 2022

if you use javascrip. you can use this code const rows = await db.select('SELECT name FROM users WHERE age > ?', [20])

@Rajkumarmagar
Copy link
Author

Please full code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants