How to use SQLite in Ionic with Capacitor

  Рет қаралды 15,476

Simon Grimm

Simon Grimm

11 ай бұрын

Learn to add SQLite with Capacitor to your Ionic app to create offline apps with their own SQL Database included!
🔥 Learn Ionic FAST: ionicacademy.com/
👨‍💻 Full tutorial: ionicacademy.com/sqlite-ionic...
#############################
❤️ You can also find me on:
Twitter: / schlimmson
TikTok: / simongrimm_
Instagram: / simongrimm_
#############################

Пікірлер: 44
@galaxies_dev
@galaxies_dev 11 ай бұрын
Learn to build epic IONIC apps FAST by joining the Ionic Academy: ionicacademy.com/
@ellenweng3668
@ellenweng3668 11 ай бұрын
You read my mind, Simon. I am just looking for tutorials on SQLite. Thank you!
@galaxies_dev
@galaxies_dev 11 ай бұрын
Happy to help!
@eduardasslutas6624
@eduardasslutas6624 2 ай бұрын
aren't your Insert/delete queries prone for sql injection? also, why do you pass id as string in "updateUserById" when id in db schema is integer?
@juanarielbrusco
@juanarielbrusco 11 ай бұрын
Great video! Thanks a lot for all your content, Simon :) cheers from Argentina
@galaxies_dev
@galaxies_dev 11 ай бұрын
My pleasure Juan!
@juanmluces
@juanmluces 11 ай бұрын
Great video Simon! I believe that the best approach for sharing the private signal from the service is creating a public property that returns computed(this.users) or computed( () => this.users()); that way you get a read only version of the signal. Keep up the good work!
@galaxies_dev
@galaxies_dev 11 ай бұрын
Yes indeed good idea Juan!
@jbwesleyster
@jbwesleyster 11 ай бұрын
this is what I was looking for😀
@AGUNGKAYA
@AGUNGKAYA 11 ай бұрын
wow this is great! SQL! I lv it
@bennyzimmer8342
@bennyzimmer8342 10 ай бұрын
How can I use the upgrade statement function to modify table structure for users that also have the app running?
@wespug
@wespug 9 ай бұрын
Hi @Simon , wich extension did you use for generate code automatic. I special part of the video you say " uu compile you are very smart" wich extension is that?
@galaxies_dev
@galaxies_dev 9 ай бұрын
That must be Github Copilot!
@GamerNut999
@GamerNut999 11 ай бұрын
I need help with my app I’m working on. And unsure if I will get what I need if I sign up with your website.
@galaxies_dev
@galaxies_dev 10 ай бұрын
We have a private Discord channel for support of Ionic Academy members, yes!
@DavidSchmidt07
@DavidSchmidt07 11 ай бұрын
Thank you for using signals
@galaxies_dev
@galaxies_dev 11 ай бұрын
You're welcome!
@tamhuynh772
@tamhuynh772 9 ай бұрын
Hi Simon, I was wondering if you know of any ORM framework for Ionic (with Capacitor) that is compatible with Sqlite? Thank you!
@galaxies_dev
@galaxies_dev 9 ай бұрын
I'm also still looking for the best way to handle this, usually Prisma covers most cases..
@edwinquaihoi8503
@edwinquaihoi8503 9 ай бұрын
I think TypeORM might be what you are looking for
@user-fx4qq8ek2s
@user-fx4qq8ek2s 11 ай бұрын
excuse me but i want to know the difference between sqlite and mysql sever (like phpmyadmin). is it not possible to use mysql server and ionuc capacitor?
@galaxies_dev
@galaxies_dev 11 ай бұрын
If you have a MySQL server you need an API to connect to the database from any app/website. SQLite is already bundled with any native app and can be used local and offline directly!
@kangnifredable
@kangnifredable 11 ай бұрын
@@galaxies_dev it is very difficult for me to send data from ionic react capacitor page to my api
@nodiced1
@nodiced1 10 ай бұрын
how do i use an existing .db file -- currently it is in the assets folder ? how can I run a .sql file?
@saadnatiqnori6543
@saadnatiqnori6543 10 ай бұрын
you fix the problem or not ?
@nodiced1
@nodiced1 10 ай бұрын
@@saadnatiqnori6543 yes
@nodiced1
@nodiced1 10 ай бұрын
@@saadnatiqnori6543 If you need any pointers, I can help
@zearwinandallo1199
@zearwinandallo1199 7 ай бұрын
Do you have a guide to how to upload file?
@hazhohuman
@hazhohuman 3 ай бұрын
thanks, but what about the synchronization with a remote DB? for example each 5 minutes to sync the locally stored DATA with the Remote DB
@Julio_Bandeira
@Julio_Bandeira 11 ай бұрын
I have a problem, I follow the same steps but to React and by some reason the database dont work, the function is like dont be called
@gabrielamaralpassos9537
@gabrielamaralpassos9537 4 ай бұрын
Same
@neura3964
@neura3964 8 ай бұрын
what is that extension that suggests the code? anyone?
@XXsupersonicZZ
@XXsupersonicZZ 3 ай бұрын
copilot
@isaiah-dev
@isaiah-dev 5 ай бұрын
Awesome tutorial, thanls!
@RavenXplod
@RavenXplod 11 ай бұрын
Please please do it in react without typescript
@alexreyes-cn9ru
@alexreyes-cn9ru 11 ай бұрын
Man you're the best, but i got an error message, reading the query property, I think it's caused by the newUser=' '
@kotaibakd8300
@kotaibakd8300 9 ай бұрын
did you solve it ?
@AGUNGKAYA
@AGUNGKAYA 11 ай бұрын
in my physical phone, it just showed the navbar, the rest is blank white screen. Why?
@user-wh1qq4eg7w
@user-wh1qq4eg7w 8 ай бұрын
i have this same error, did you end up fixing it?
@user-wh1qq4eg7w
@user-wh1qq4eg7w 8 ай бұрын
Yo my guy, you probs figured it out, but this guy fails to mention that there needs to be at least one entry in the db for it to show, he also forgets to show that he added an input to add new users, i just added them in and now it works like his.
@AGUNGKAYA
@AGUNGKAYA 8 ай бұрын
@@user-wh1qq4eg7w i forgot to fix it. May I see the github repo of it? Thanks
@marxman1010
@marxman1010 8 ай бұрын
The sqlite introduced in the video is not the sqlite generally referred to. There is no sqlite file, rather this ionic sqlite is stored in the indexeddb. The naming is very confusing.
@gabrielamaralpassos9537
@gabrielamaralpassos9537 4 ай бұрын
The fact you expect us to send your code to gpt to convert to React and don't provide the code make everything harder
@RealGamePanda
@RealGamePanda Ай бұрын
This example doesn't work with web applications.
How to use Ionic Storage v3 with Ionic Angular
20:46
Simon Grimm
Рет қаралды 15 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 206 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 46 МЛН
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 12 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 17 МЛН
Ionic enable GPS (native settings) using Capacitor
31:28
Coding Technyks
Рет қаралды 6 М.
Building a Native Mobile App with Next.js and Capacitor
31:13
Simon Grimm
Рет қаралды 47 М.
PowerSync in 100 Seconds
1:57
PowerSync
Рет қаралды 2,5 М.
How to Create Background Tasks in Ionic with Capacitor ⚡️
37:11
Ionic Vue SQLite With  Ionic Framework, and Capacitor
1:36:45
Aaron Saunders
Рет қаралды 3,5 М.
The Push Notifications Guide for Ionic & Capacitor
25:52
Simon Grimm
Рет қаралды 96 М.
How to Build an Ionic Barcode Scanner with Capacitor
22:15
Simon Grimm
Рет қаралды 42 М.
SQLite3 Tutorial
16:39
Derek Banas
Рет қаралды 296 М.
TypeORM v0.3.x Migrations, queries, with NestJS!
28:37
Marius Espejo
Рет қаралды 36 М.
Generate Custom Icon & Splashscreen with Ionic 7 & Capacitor 5
13:58
Coding Technyks
Рет қаралды 19 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,3 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 211 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН