How To Make A Sqlite3 Object In Cpp

[Solved] How To Make A Sqlite3 Object In Cpp | Typescript - Code Explorer | yomemimo.com
Question : how to make a sqlite3 object in cpp

Answered by : careful-copperhead-swjpvma0fu7e

#include <iostream>
#include "sqlite3.h" //download: https://www.sqlite.org/download.html
sqlite3* access(std::string path){	sqlite3* _db;	int file_exist = _access(path.c_str(), 0);	int res = sqlite3_open(path.c_str(), &_db);	if (res != SQLITE_OK) {	_db = nullptr;	std::cout << "Failed to open DB" << std::endl; } retuern _db;
}

Source : | Last Update : Mon, 09 May 22

Answers related to how to make a sqlite3 object in cpp

Code Explorer Popular Question For Typescript