now winix waites for the database to be ready (when the operating system starts)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@638 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -43,6 +43,8 @@ public:
|
||||
// !! GetFile i GetDir beda uzywac GetItem
|
||||
|
||||
void Init(const std::string & database, const std::string & user, const std::string & pass);
|
||||
void WaitForConnection();
|
||||
|
||||
bool CheckUser(const std::string & login, const std::string & password, long & user_id);
|
||||
Error AddUser(User & user, const std::string & password);
|
||||
|
||||
@@ -203,7 +205,8 @@ protected:
|
||||
|
||||
void Close();
|
||||
|
||||
void AssertConnection();
|
||||
bool AssertConnection(bool put_log = true, bool throw_if_no_connection = true);
|
||||
|
||||
std::string Escape(const std::string & s);
|
||||
std::string Escape(const char * s);
|
||||
PGresult * AssertQuery(const std::string & q);
|
||||
|
Reference in New Issue
Block a user