From the official FMDB documentation:
Opening
Before you can interact with the database, you must open it. Opening fails if there are not enough resources or permissions to open and / or create the database.
if (![db open]) {
[db release];
return;
}
Closing
, , FMDatabase, SQLite , .
[db close]
, , , open close .
, , , .
: https://github.com/ccgus/fmdb