some work in morm (select statement)
git-svn-id: svn://ttmath.org/publicrep/morm/trunk@1079 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -52,11 +52,21 @@ public:
|
||||
|
||||
void set_log_queries(bool log_queries);
|
||||
|
||||
bool query(const PT::TextStream & stream);
|
||||
bool query(const char * query_str);
|
||||
bool query(const std::string & query_str);
|
||||
|
||||
bool query_select(const char * query_str);
|
||||
bool query_update(const char * query_str);
|
||||
bool query_insert(const char * query_str);
|
||||
|
||||
bool query_select(const PT::TextStream & stream);
|
||||
bool query_update(const PT::TextStream & stream);
|
||||
bool query_insert(const PT::TextStream & stream);
|
||||
|
||||
void map_values_from_query(Model & model);
|
||||
|
||||
|
||||
bool is_last_result(ExecStatusType t);
|
||||
|
||||
/*
|
||||
@@ -81,12 +91,14 @@ public:
|
||||
|
||||
void clear_result();
|
||||
|
||||
//void SetConnParam(const std::wstring & database, const std::wstring & user, const std::wstring & pass);
|
||||
//void Connect();
|
||||
//void WaitForConnection();
|
||||
//void Close();
|
||||
//bool AssertConnection(bool put_log = true, bool throw_if_no_connection = true);
|
||||
//void SetDbParameters();
|
||||
void set_conn_param(const std::wstring & database, const std::wstring & user, const std::wstring & pass);
|
||||
void connect();
|
||||
void wait_for_connection();
|
||||
void close();
|
||||
bool assert_connection(bool put_log = true, bool throw_if_no_connection = true);
|
||||
void set_db_parameters();
|
||||
void log_connection_socket();
|
||||
|
||||
//PGconn * GetPgConn();
|
||||
|
||||
|
||||
@@ -96,6 +108,8 @@ protected:
|
||||
PGresult * last_result; // can be null
|
||||
ExecStatusType last_status;
|
||||
bool log_queries;
|
||||
PT::TextStream stream;
|
||||
std::string query_str;
|
||||
|
||||
std::wstring db_database;
|
||||
std::wstring db_user;
|
||||
@@ -104,6 +118,7 @@ protected:
|
||||
|
||||
void allocate_default_expression();
|
||||
|
||||
void overwrite(PT::TextStream & stream);
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user