28 #ifndef _OPENCOG_PERSISTENT_ODBC_DRIVER_H
29 #define _OPENCOG_PERSISTENT_ODBC_DRIVER_H
59 const char * authentication);
94 const char *
get_value(
const char * fieldname);
101 template<
class T>
bool
106 bool rc = (data->*cb) ();
113 template<
class T>
bool
122 for (i=0; i<
ncols; i++)
138 std::string::size_type pos = 0;
139 pos = str.find (
'\'', pos);
140 while (pos != std::string::npos)
142 str.insert(pos, 1,
'\'');
144 pos = str.find(
'\'', pos);
150 #endif // _OPENCOG_PERSISTENT_ODBC_DRIVER_H
ODBCRecordSet * exec(const char *)
int get_col_by_name(const char *)
ODBCConnection(const char *dbname, const char *username, const char *authentication)
std::stack< ODBCRecordSet * > free_pool
ODBCRecordSet(ODBCConnection *)
void get_column_labels(void)
void alloc_and_bind_cols(int ncols)
const char * get_value(const char *fieldname)
void escape_single_quotes(std::string &str)
bool foreach_row(bool(T::*cb)(void), T *data)
bool connected(void) const
bool foreach_column(bool(T::*cb)(const char *, const char *), T *data)
void extract_error(const char *)
ODBCRecordSet * get_record_set(void)