File: sqlite_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 (62 lines) | stat: -rw-r--r-- 1,793 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
/*
 *  OpenDBX - A simple but extensible database abstraction layer
 *  Copyright (C) 2004-2007 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 "sqlitebackend.h"



#ifndef SQLITE_BASIC_H
#define SQLITE_BASIC_H



/*
 *  Basic operations
 */

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

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

static int sqlite_odbx_unbind( odbx_t* handle );

static int sqlite_odbx_finish( odbx_t* handle );

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

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

static const char* sqlite_odbx_error( odbx_t* handle );

static int sqlite_odbx_error_type( odbx_t* handle );

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

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

static int sqlite_odbx_result_finish( odbx_result_t* result );

static int sqlite_odbx_row_fetch( odbx_result_t* result );

static uint64_t sqlite_odbx_rows_affected( odbx_result_t* result );

static unsigned long sqlite_odbx_column_count( odbx_result_t* result );

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

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

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

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



#endif