32 #ifndef GUARD_SQLITE_CONNECTION_HPP_INCLUDED 33 #define GUARD_SQLITE_CONNECTION_HPP_INCLUDED 35 #include <boost/noncopyable.hpp> 65 void attach(std::string
const & db, std::string
const & database_alias);
72 void detach(std::string
const & database_alias);
76 void open(std::string
const & db);
83 #endif //GUARD_SQLITE_CONNECTION_HPP_INCLUDED connection is used to open, close, attach and detach a database. Further it has to be passed to all c...
void attach(std::string const &db, std::string const &database_alias)
attaches another database file to the database represented by the object of this class. It is possible to attach up to 10 times the same database file with different aliases
~connection()
destructor closes the database automatically
void detach(std::string const &database_alias)
detaches a database via alias, if the same database was attached with several names they will be stil...
connection(std::string const &db)
constructor opens the database
void open(std::string const &db)
A internal used class, shall not be used from users.