tmotagam / sqlite-electron

module for electron to use sqlite3 databases
GNU General Public License v3.0
80 stars 12 forks source link

Set dbpath without ipc #27

Closed wiryonolau closed 6 months ago

wiryonolau commented 7 months ago

Hi is possible to set dbpath without ipc or async

I see the example that this need to be define multiple time, correct me if I'm wrong.

Usually we will init database first such as set path, checking schema or update table in the main before rendering window.

tmotagam commented 7 months ago

Hi @wiryonolau, No it is not possible to set dbPath without async as the command goes to python to open or create (In case it does not exists) the db. The library only open one db at a time if have previously opened another db that db will be closed so that the new db can be opened.

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.