Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 60
Registered: ‎06-08-2011
My Device: n/a
My Carrier: n/a
Accepted Solution

SQLite - no need to close?

In the Webworks documentation I don't see a reference to any close methods for database, transaction, resultset etc for SQLite. I want to make sure I am using the device resources as efficiently as possible and just want to confirm that there is no need to close or cleanup for SQLite.

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: SQLite - no need to close?

No need to close. No APIs to perform a close either, so that makes it easy :-)

 

In all honesty I'm not sure exactly how we can get away with it, I'm assuming the platform is doing the cleanup for us as it goes or on application close. I haven't run into any issues as a result of no close APIs though. You're also free to re-use any transaction, db, etc. variables for other uses at any time without having to free them up in any way first.

 

Erik Oros

BlackBerry Development Advisor


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Highlighted
Developer
Posts: 60
Registered: ‎06-08-2011
My Device: n/a
My Carrier: n/a

Re: SQLite - no need to close?

Thanks! I just wanted to double-check that I wasn't missing something.