line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
/* $Id: SQLite2.xs,v 1.2 2004/08/09 13:23:55 matt Exp $ */ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
#include "SQLiteXS.h" |
4
|
|
|
|
|
|
|
|
5
|
44
|
50
|
|
|
|
|
DBISTATE_DECLARE; |
|
|
50
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
MODULE = DBD::SQLite2 PACKAGE = DBD::SQLite2::db |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
AV * |
12
|
|
|
|
|
|
|
list_tables(dbh) |
13
|
|
|
|
|
|
|
SV *dbh |
14
|
|
|
|
|
|
|
CODE: |
15
|
|
|
|
|
|
|
{ |
16
|
10
|
|
|
|
|
|
RETVAL = newAV(); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
OUTPUT: |
19
|
|
|
|
|
|
|
RETVAL |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
int |
22
|
|
|
|
|
|
|
last_insert_rowid(dbh) |
23
|
|
|
|
|
|
|
SV *dbh |
24
|
|
|
|
|
|
|
CODE: |
25
|
|
|
|
|
|
|
{ |
26
|
1
|
|
|
|
|
|
D_imp_dbh(dbh); |
27
|
1
|
|
|
|
|
|
RETVAL = sqlite_last_insert_rowid(imp_dbh->db); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
OUTPUT: |
30
|
|
|
|
|
|
|
RETVAL |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
void |
33
|
|
|
|
|
|
|
create_function(dbh, name, argc, func) |
34
|
|
|
|
|
|
|
SV *dbh |
35
|
|
|
|
|
|
|
char *name |
36
|
|
|
|
|
|
|
int argc |
37
|
|
|
|
|
|
|
SV *func |
38
|
|
|
|
|
|
|
CODE: |
39
|
|
|
|
|
|
|
{ |
40
|
11
|
|
|
|
|
|
sqlite2_db_create_function( dbh, name, argc, func ); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
void |
44
|
|
|
|
|
|
|
create_aggregate(dbh, name, argc, aggr) |
45
|
|
|
|
|
|
|
SV *dbh |
46
|
|
|
|
|
|
|
char *name |
47
|
|
|
|
|
|
|
int argc |
48
|
|
|
|
|
|
|
SV *aggr |
49
|
|
|
|
|
|
|
CODE: |
50
|
|
|
|
|
|
|
{ |
51
|
6
|
|
|
|
|
|
sqlite2_db_create_aggregate( dbh, name, argc, aggr ); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
int |
55
|
|
|
|
|
|
|
busy_timeout(dbh, timeout=0) |
56
|
|
|
|
|
|
|
SV *dbh |
57
|
|
|
|
|
|
|
int timeout |
58
|
|
|
|
|
|
|
CODE: |
59
|
0
|
|
|
|
|
|
RETVAL = sqlite2_busy_timeout( dbh, timeout ); |
60
|
|
|
|
|
|
|
OUTPUT: |
61
|
|
|
|
|
|
|
RETVAL |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
MODULE = DBD::SQLite2 PACKAGE = DBD::SQLite2::st |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
MODULE = DBD::SQLite2 PACKAGE = DBD::SQLite2 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
INCLUDE: SQLite2.xsi |