~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/drizzle_res.h

  • Committer: Monty Taylor
  • Date: 2009-03-24 17:44:41 UTC
  • mto: (960.5.2 mordred)
  • mto: This revision was merged to the branch mainline in revision 964.
  • Revision ID: mordred@inaugust.com-20090324174441-nmsq0gwjlgf7f0mt
Changed handlerton to StorageEngine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef _libdrizzle_drizzle_res_h
21
 
#define _libdrizzle_drizzle_res_h
 
20
#ifndef LIBDRIZZLECLIENT_DRIZZLE_RES_H
 
21
#define LIBDRIZZLECLIENT_DRIZZLE_RES_H
 
22
 
 
23
#include "drizzle_field.h"
 
24
#include "drizzle_data.h"
 
25
#include "drizzle_rows.h"
 
26
#include "drizzle.h"
 
27
 
 
28
#include <stdint.h>
 
29
#if !defined(__cplusplus)
 
30
# include <stdbool.h>
 
31
#endif
22
32
 
23
33
#ifdef  __cplusplus
24
34
extern "C" {
25
35
#endif
26
36
 
27
 
#include <stdint.h>
28
 
#include <stdbool.h>
29
 
#include <libdrizzle/drizzle_field.h>
30
 
#include <libdrizzle/drizzle_data.h>
31
 
#include <libdrizzle/drizzle_rows.h>
32
 
#include <libdrizzle/drizzle.h>
33
 
 
34
37
  struct st_drizzle;
35
38
 
36
39
  typedef struct st_drizzle_res {
44
47
  DRIZZLE_ROW  row;      /* If unbuffered read */
45
48
  DRIZZLE_ROW  current_row;    /* buffer to current row */
46
49
  uint32_t  field_count, current_field;
47
 
  bool  eof;      /* Used by drizzle_fetch_row */
 
50
  bool  eof;      /* Used by drizzleclient_fetch_row */
48
51
  /* drizzle_stmt_close() had to cancel this result */
49
 
  bool       unbuffered_fetch_cancelled; 
 
52
  bool       unbuffered_fetch_cancelled;
50
53
  void *extension;
51
54
} DRIZZLE_RES;
52
55
 
56
59
  Should definitely be used if one uses shared libraries.
57
60
*/
58
61
 
59
 
uint64_t drizzle_num_rows(const DRIZZLE_RES *res);
60
 
unsigned int drizzle_num_fields(const DRIZZLE_RES *res);
61
 
bool drizzle_eof(const DRIZZLE_RES *res);
62
 
const DRIZZLE_FIELD * drizzle_fetch_field_direct(const DRIZZLE_RES *res,
 
62
uint64_t drizzleclient_num_rows(const DRIZZLE_RES *res);
 
63
unsigned int drizzleclient_num_fields(const DRIZZLE_RES *res);
 
64
bool drizzleclient_eof(const DRIZZLE_RES *res);
 
65
const DRIZZLE_FIELD * drizzleclient_fetch_field_direct(const DRIZZLE_RES *res,
63
66
                unsigned int fieldnr);
64
 
const DRIZZLE_FIELD * drizzle_fetch_fields(const DRIZZLE_RES *res);
65
 
DRIZZLE_ROW_OFFSET drizzle_row_tell(const DRIZZLE_RES *res);
66
 
DRIZZLE_FIELD_OFFSET drizzle_field_tell(const DRIZZLE_RES *res);
 
67
const DRIZZLE_FIELD * drizzleclient_fetch_fields(const DRIZZLE_RES *res);
 
68
DRIZZLE_ROW_OFFSET drizzleclient_row_tell(const DRIZZLE_RES *res);
 
69
DRIZZLE_FIELD_OFFSET drizzleclient_field_tell(const DRIZZLE_RES *res);
67
70
 
68
 
void    drizzle_free_result(DRIZZLE_RES *result);
69
 
void    drizzle_data_seek(DRIZZLE_RES *result, uint64_t offset);
70
 
DRIZZLE_ROW_OFFSET drizzle_row_seek(DRIZZLE_RES *result, DRIZZLE_ROW_OFFSET offset);
71
 
DRIZZLE_FIELD_OFFSET drizzle_field_seek(DRIZZLE_RES *result, DRIZZLE_FIELD_OFFSET offset);
72
 
DRIZZLE_ROW  drizzle_fetch_row(DRIZZLE_RES *result);
73
 
uint32_t * drizzle_fetch_lengths(DRIZZLE_RES *result);
74
 
DRIZZLE_FIELD *  drizzle_fetch_field(DRIZZLE_RES *result);
 
71
void    drizzleclient_free_result(DRIZZLE_RES *result);
 
72
void    drizzleclient_data_seek(DRIZZLE_RES *result, uint64_t offset);
 
73
DRIZZLE_ROW_OFFSET drizzleclient_row_seek(DRIZZLE_RES *result, DRIZZLE_ROW_OFFSET offset);
 
74
DRIZZLE_FIELD_OFFSET drizzleclient_field_seek(DRIZZLE_RES *result, DRIZZLE_FIELD_OFFSET offset);
 
75
DRIZZLE_ROW  drizzleclient_fetch_row(DRIZZLE_RES *result);
 
76
uint32_t * drizzleclient_fetch_lengths(DRIZZLE_RES *result);
 
77
DRIZZLE_FIELD *  drizzleclient_fetch_field(DRIZZLE_RES *result);
75
78
 
76
79
#ifdef  __cplusplus
77
80
}
78
81
#endif
79
82
 
80
 
#endif /* _libdrizzle_drizzle_res_h */
 
83
#endif /* LIBDRIZZLECLIENT_DRIZZLE_RES_H */