scclib-sqlite
Stable Cloud Computing Sqlite Library
|
Database connection. More...
#include <sqld.h>
Public Member Functions | |
Conn (const std::string &="file:mem?mode=memory&cache=shared") | |
Constructs and open a sqlite in-memory database connection. | |
Conn (const Conn &)=delete | |
Conn & | operator= (const Conn &)=delete |
Conn (Conn &&)=delete | |
Conn & | operator= (Conn &&)=delete |
void | reopen (const std::string &="file:mem?mode=memory&cache=shared") |
Reopen the connection. More... | |
Friends | |
class | Req |
Database connection.
Uses the uri method to specifiy a connection.
The default is a shared cache connection to an in-memory database.
Once constructed or reopened, a database connection is thread-safe.
void Conn::reopen | ( | const std::string & | uri = "file:mem?mode=memory&cache=shared" | ) |