capacitor-community / sqlite

⚡Capacitor plugin for native & electron SQLite databases.
MIT License
495 stars 118 forks source link

Create database from methon instead json #314

Closed R1NEJ0 closed 2 years ago

R1NEJ0 commented 2 years ago

Hi everyone,

I'm triying to use the dependencies but I'm not able to create a database with a method instead JSON file...

Could someone help me?

I'd like use something like :

sQLite.create({ name: "myDatabase.db", location: "default", version: 1 })

Thanks in advance.

jepiqueau commented 2 years ago

@R1NEJ0 Look at the documentation and at the application starters under https://github.com/jepiqueau . You will find your way. Thanks anyhow to use the plugin

R1NEJ0 commented 2 years ago

I’m having a look in al test of your starter repositorie, I think I know how to do it.

thanks.

jepiqueau commented 2 years ago

@R1NEJ0 i assume you find your way so i close the issue

R1NEJ0 commented 2 years ago

finally I'm moving the project to RN, with ionic I have bad perfomance.

Thanks!

jepiqueau commented 2 years ago

@R1NEJ0 what is RN for my knowledge

R1NEJ0 commented 2 years ago

React Native ;)

jepiqueau commented 2 years ago

@R1NEJ0 thanks for this, We have added a new functionality to transfer a database file from a remote server to the cache through a fetch request and when done and the to move the databases from cache to the database folder. this process does not use the connection till its ended. May be those could have help you?

R1NEJ0 commented 2 years ago

My problem is that first I have to catch data from a .txt and parse that data and insert into database.

I'm going to try perfomance with react native first.

I will have ionic and these dependencies in mind.