Database and module

Just starting out? Need help? Post your questions and find answers here.
loulou2522
Enthusiast
Enthusiast
Posts: 501
Joined: Tue Oct 14, 2014 12:09 pm

Database and module

Post by loulou2522 »

Here is my problem :
In my main program i open a sqlite database
How can i do for not reusing this connection in my module without having to reopen the database
Thanks in advance
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Database and module

Post by Fangbeast »

loulou2522 wrote:Here is my problem :
In my main program i open a sqlite database
How can i do for not reusing this connection in my module without having to reopen the database
Thanks in advance
I usually store the handle to the database globally and then refer to it from wherever I need it.
Amateur Radio, D-STAR/VK3HAF
Post Reply