SQLiteCpp icon indicating copy to clipboard operation
SQLiteCpp copied to clipboard

Are Database objects automatically closed when leaving the scope?

Open andrewdurkiewicz opened this issue 7 years ago • 1 comments

I know SQLiteCpp acts as a wrapper around sqlite3, which includes a function for closing the database. I am just curious if this library automatically does that for me, so I don't need to worry about any memory leaks.

Edit, I am trying to label this under the question label but my UI seems a bit bugged.

andrewdurkiewicz avatar Jul 02 '19 15:07 andrewdurkiewicz

Yes exactly, the Database destructor will close the db automatically.

SRombauts avatar Jul 02 '19 16:07 SRombauts