Skip to content

Commit

Permalink
增加数据库的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Zhao committed Aug 8, 2017
1 parent fa0a08d commit 462e47f
Show file tree
Hide file tree
Showing 8 changed files with 443 additions and 181 deletions.
10 changes: 5 additions & 5 deletions fflib/db/db_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define _FF_DB_OPS_H_

#include <string>
using namespace std;


namespace ff
{
Expand All @@ -19,13 +19,13 @@ class db_ops_i
public:
virtual ~db_ops_i(){}

virtual int connect(const string& args_) = 0;
virtual int connect(const std::string& args_) = 0;
virtual bool is_connected() = 0;
virtual int exe_sql(const string& sql_, db_each_row_callback_i* cb_) = 0;
virtual int exe_sql(const std::string& sql_, db_each_row_callback_i* cb_) = 0;
virtual void close() = 0;
virtual int affect_rows() = 0;
virtual int affected_rows() = 0;
virtual const char* error_msg() = 0;
virtual string escape(const string& src_) = 0;

virtual int ping() = 0;
virtual void begin_transaction() = 0;
virtual void commit_transaction() = 0;
Expand Down

0 comments on commit 462e47f

Please sign in to comment.