File: oracle_basic.h

package info (click to toggle)
libopendbx 1.4.6-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,024 kB
  • sloc: sh: 10,899; ansic: 7,284; xml: 1,837; cpp: 1,696; makefile: 316; sed: 16
file content (74 lines) | stat: -rw-r--r-- 2,017 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 *  OpenDBX - A simple but extensible database abstraction layer
 *  Copyright (C) 2006-2008 Norbert Sendetzky and others
 *
 *  Distributed under the terms of the GNU Library General Public Licence
 * version 2 or (at your option) any later version.
 */



#include "oraclebackend.h"



#ifndef ORACLE_BASIC_H
#define ORACLE_BASIC_H



/*
 *  Basic operations
 */

static int oracle_odbx_init( odbx_t* handle, const char* host, const char* port );

static int oracle_odbx_bind( odbx_t* handle, const char* database, const char* who, const char* cred, int method );

static int oracle_odbx_unbind( odbx_t* handle );

static int oracle_odbx_finish( odbx_t* handle );

static int oracle_odbx_get_option( odbx_t* handle, unsigned int option, void* value );

static int oracle_odbx_set_option( odbx_t* handle, unsigned int option, void* value );

static const char* oracle_odbx_error( odbx_t* handle );

static int oracle_odbx_error_type( odbx_t* handle );

static int oracle_odbx_query( odbx_t* handle, const char* query, unsigned long length );

static int oracle_odbx_result( odbx_t* handle, odbx_result_t** result, struct timeval* timeout, unsigned long chunk );

static int oracle_odbx_result_finish( odbx_result_t* result );

static int oracle_odbx_row_fetch( odbx_result_t* result );

static uint64_t oracle_odbx_rows_affected( odbx_result_t* result );

static unsigned long oracle_odbx_column_count( odbx_result_t* result );

static const char* oracle_odbx_column_name( odbx_result_t* result, unsigned long pos );

static int oracle_odbx_column_type( odbx_result_t* result, unsigned long pos );

static unsigned long oracle_odbx_field_length( odbx_result_t* result, unsigned long pos );

static const char* oracle_odbx_field_value( odbx_result_t* result, unsigned long pos );



/*
 * Private support functions
 */

static int oracle_priv_handle_cleanup( odbx_t* handle );

static int oracle_priv_stmt_exec( struct oraconn* conn, text* stmt );

static int oracle_priv_collen( ub2 type, ub2 length );



#endif