~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/libdrizzle/libdrizzle.hpp

  • Committer: Olaf van der Spek
  • Date: 2011-08-06 22:31:11 UTC
  • mfrom: (2386 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110806223111-irz1ie6xoy4q0prc
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
    return drizzle_con_error(&b_);
139
139
  }
140
140
 
 
141
  void set_tcp(const char* host, in_port_t port)
 
142
  {
 
143
    drizzle_con_set_tcp(&b_, host, port);
 
144
  }
 
145
 
 
146
  void set_auth(const char* user, const char* password)
 
147
  {
 
148
    drizzle_con_set_auth(&b_, user, password);
 
149
  }
 
150
 
 
151
  void set_db(const char* db)
 
152
  {
 
153
    drizzle_con_set_db(&b_, db);
 
154
  }
 
155
 
141
156
  drizzle_return_t query(result_c& result, const char* str, size_t str_size)
142
157
  {
143
158
    drizzle_return_t ret;