extern "C" STORE * GetStore();
+class STG_LOGGER;
+
class FIREBIRD_STORE : public STORE {
public:
FIREBIRD_STORE();
int RestoreService(SERVICE_CONF * sc, const std::string & name) const;
int AddService(const std::string & name) const;
int DelService(const std::string & name) const;
+
private:
+ FIREBIRD_STORE(const FIREBIRD_STORE & rvalue);
+ FIREBIRD_STORE & operator=(const FIREBIRD_STORE & rvalue);
+
std::string version;
mutable std::string strError;
mutable std::string db_server, db_database, db_user, db_password;
mutable pthread_mutex_t mutex;
mutable IBPP::TIL til;
mutable IBPP::TLR tlr;
+ int schemaVersion;
+ STG_LOGGER & WriteServLog;
int SaveStat(const USER_STAT & stat, const std::string & login, int year = 0, int month = 0) const;
+ int CheckVersion();
};
time_t ts2time_t(const IBPP::Timestamp & ts);