X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1bf5ae378079e212f6918d09d87dec5420a0d6ec..155afaf9fb83e380a23877c2fba74d0cc5c26926:/projects/stargazer/plugins/store/postgresql/postgresql_store.h diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store.h b/projects/stargazer/plugins/store/postgresql/postgresql_store.h index a731fbf9..ea2ec4f3 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store.h +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store.h @@ -121,19 +121,6 @@ public: inline const string & GetStrError() const { return strError; }; inline const string & GetVersion() const { return versionString; }; private: - std::string versionString; - mutable std::string strError; - std::string server; - std::string database; - std::string user; - std::string password; - std::string clientEncoding; - MODULE_SETTINGS settings; - mutable pthread_mutex_t mutex; - mutable int version; - - PGconn * connection; - int StartTransaction() const; int CommitTransaction() const; int RollbackTransaction() const; @@ -154,9 +141,21 @@ private: int Connect(); int Reset() const; int CheckVersion() const; + + std::string versionString; + mutable std::string strError; + std::string server; + std::string database; + std::string user; + std::string password; + std::string clientEncoding; + MODULE_SETTINGS settings; + mutable pthread_mutex_t mutex; + mutable int version; + + PGconn * connection; }; extern const volatile time_t stgTime; #endif //POSTGRESQL_STORE_H -