SQLite in VSCode (open db, run query, view results) demo
Вставка
- Опубліковано 11 чер 2021
- A simple demonstration of using only VSCode (Visual Studio Code) to open a connection to a SQLite db, perform database queries on a SQLite database, and view results of our SQL query all within VSCode!
Hey if you find this content helpful! I’m starting to make full series of python / data science / blockchain (smart contracts) that is sorted in episodes. All of them are around hour long, HD, and have no ads. Please feel free to check out the channel or consider subscribing ❤️ Let me know if you have topics you’d like to see me cover!
I want it! Thank youuu, blockchain in web development please
Thanks for making this quick walkthrough. It made it very easy to figure out how to open my database and run my queries!
Thank you! Yeah it’s exactly what I needed when I was looking for a SQLite tool at that time!
Exactly what I needed. Thanks!!
This is super useful. Thank you
Straight to the point ! thank you.
Wow, really Thanks. Because I was searching this video
Many thanks Samuel - very helpful. Cheers from Australia - Dave
Thank you Dave!
Your videos are extremely helpful, thank you
Such generous compliments 🥹 thank you!
Thanks! Very helpful
thanks. very helpful!
thank you!
This is super.Thank you!
You’re welcome! :)
Thank you Samuel
You’re welcome Vitalii :)
Great 👍🏻 thanks Samuel
You’re welcome!
thanks, very helpful
Thank you Lucas!
This is nice, thank you
Thank you Josi!
thank you
Thanks, very clear. I want to ask something, when are we gonna use SQLite? I used to use pandas to manipulate data.
Theory: SQLite gives you a database. Pandas help you manipulate data. You write pandas code in Python to clean, transform, visualize etc, but pandas itself is agnostic to what database you have at the back end since there are plenty of connectors.
Practice: Say you have a diary mobile app, you implement sqlite so users of the app have somewhere to store the data (log in, log out, activity logs, mood, diary). That's what a db do. A user can export that data from the db (sqlite or anything else you choose), and write pandas to run exploratory analysis on their own diary.
Can you make a video of how to create a database? Because I can’t click “SQLite Open Database” when I don’t have one :(((
You can do the simplest thing by importing a CSV into SQL in 3 lines of code (using .import in sqlite). Here's the tutorial: ua-cam.com/video/GlyIpx_VDxo/v-deo.html (you can also watch it on my Facebook: facebook.com/100000114769079/videos/6015776788436087/). Hope it helps!
This may not be very much related. But do you know where can I find the db3 file that I created from my Xamarin app.
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "****.db3");
Looks like there are some good answers here:
social.msdn.microsoft.com/Forums/en-US/242ac93e-53f0-4d85-a682-4d0adfcd6249/how-to-find-db-file-?forum=xamarinforms
You might also find it useful to configure your SQLite db path:
learn.microsoft.com/en-us/xamarin/ios/data-cloud/data/configuration
Hi how to export the results in csv file
Help!! need db file to study, pls!
You can create a SQLite db for study by converting it from a CSV! :)
Intro to SQLite: CSV to SQLite (Python for Bankers series)
ua-cam.com/video/GlyIpx_VDxo/v-deo.html
You can also get the files, data etc from my GitHub!
I keep getting failed to open database when I try to run a query. How to fix this? Thank you
hey there isn't enough information in your comment for me to help / troubleshoot. Can you copy + paste some logs? Is it a sqlite file you downloaded off the internet and does switching to another sqlite file work? (trying to isolate the root cause)
@@SamuelChan I’m working on a django project and I’m trying to open database in VSCode but I keep getting “failed to open database” error. The sql explorer doesn’t even show up on the explorer pane.
I have SQLite extension installed. I’ve also installed sqlite3 on my computer and it works according the cmd prompt. But I’m still getting this error message.
I’m using a windows 10.
Any help would be appreciated. This is my first django project so I’m still learning.
OK going off the django comment, this sqlite file may not have existed until you did your first migration (python manage.py makemigrations && python manage.py migrate). Do you physically see it on your drive when you change directory to that django project and then do ls for lists (dir on Windows)?
@@SamuelChan yes I see it