Check out example codes for "sqlite3_open_v2". It will help you in understanding the concepts better.

Code Example 1

sqlite3_open_v2("database.db", &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL );

Learn ReactJs, React Native from akashmittal.com