Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Main
All Projects
Main
Overview
Activity
Issues
Wiki
Files
Repository
Download (370 Bytes)
Statistics
| Branch:
master
| Tag:
RevA
RevB
| Revision:
root
/
software
/
sqlite_poc
/
DBManager.cc
@ 6e4119a4
View
History
Annotate
#include
<iostream>
#include
"DBManager.h"
DBManager
::
DBManager
(
const
std
::
string
&
db_path
)
{
int
rc
=
sqlite3_open
(
db_path
.
c_str
(),
&
this
->
db
);
if
(
rc
)
{
std
::
cerr
<<
"Uh-oh spaghetti O's"
<<
std
::
endl
;
}
else
{
std
::
cout
<<
"DB connected
\n
"
<<
std
::
endl
;
}
}
DBManager
::~
DBManager
()
{
sqlite3_close
(
this
->
db
);
}
« Previous
1
2
3
…
5
Next »
(1-1/5)
Loading...