~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Mark Atwood
  • Date: 2011-08-05 19:19:22 UTC
  • mfrom: (2367.2.15 client)
  • Revision ID: me@mark.atwood.name-20110805191922-lm7ein4fzhbdk4nz
mergeĀ lp:~olafvdspek/drizzle/client

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;