Do Sqlite have to close connection?


I’m developing a mobile game and using Sqlite( as native database.
Is there any problem if I open database when game start and never close it?(Only this single thread game will visit the database)
Such as timeout, memory leak or something else.
Thank you!

ah… I almost forget this question.
Answer is if you’re using native database, with single connection, then you don’t need to care about its cost.
Open/close it as you wish :slight_smile: