1
1
function sqlite3_errmsg ()
2
2
return ccall ( (:sqlite3_errmsg , sqlite3_lib),
3
- Ptr{Uint8 }, ()
3
+ Ptr{UInt8 }, ()
4
4
)
5
5
end
6
6
function sqlite3_errmsg (db:: Ptr{Void} )
7
7
@NULLCHECK db
8
8
return ccall ( (:sqlite3_errmsg , sqlite3_lib),
9
- Ptr{Uint8 }, (Ptr{Void},),
9
+ Ptr{UInt8 }, (Ptr{Void},),
10
10
db)
11
11
end
12
12
function sqlite3_open (file:: AbstractString ,handle:: Array{Ptr{Void},1} )
13
13
return ccall ( (:sqlite3_open , sqlite3_lib),
14
- Cint, (Ptr{Uint8 },Ptr{Void}),
14
+ Cint, (Ptr{UInt8 },Ptr{Void}),
15
15
file,handle)
16
16
end
17
17
function sqlite3_open16 (file:: UTF16String ,handle:: Array{Ptr{Void},1} )
18
18
return ccall ( (:sqlite3_open16 , sqlite3_lib),
19
- Cint, (Ptr{Uint16 },Ptr{Void}),
19
+ Cint, (Ptr{UInt16 },Ptr{Void}),
20
20
file,handle)
21
21
end
22
22
function sqlite3_close (handle:: Ptr{Void} )
34
34
function sqlite3_prepare_v2 (handle:: Ptr{Void} ,query:: AbstractString ,stmt:: Array{Ptr{Void},1} ,unused:: Array{Ptr{Void},1} )
35
35
@NULLCHECK handle
36
36
return ccall ( (:sqlite3_prepare_v2 , sqlite3_lib),
37
- Cint, (Ptr{Void},Ptr{Uint8 },Cint,Ptr{Void},Ptr{Void}),
37
+ Cint, (Ptr{Void},Ptr{UInt8 },Cint,Ptr{Void},Ptr{Void}),
38
38
handle,query,sizeof (query),stmt,unused)
39
39
end
40
40
function sqlite3_prepare16_v2 (handle:: Ptr{Void} ,query:: AbstractString ,stmt:: Array{Ptr{Void},1} ,unused:: Array{Ptr{Void},1} )
41
41
@NULLCHECK handle
42
42
return ccall ( (:sqlite3_prepare16_v2 , sqlite3_lib),
43
- Cint, (Ptr{Void},Ptr{Uint16 },Cint,Ptr{Void},Ptr{Void}),
43
+ Cint, (Ptr{Void},Ptr{UInt16 },Cint,Ptr{Void},Ptr{Void}),
44
44
handle,query,sizeof (query),stmt,unused)
45
45
end
46
46
function sqlite3_finalize (stmt:: Ptr{Void} )
61
61
function sqlite3_bind_parameter_name (stmt:: Ptr{Void} , col:: Int )
62
62
@NULLCHECK stmt
63
63
return ccall ( (:sqlite3_bind_parameter_name , sqlite3_lib),
64
- Ptr{Uint8 }, (Ptr{Void}, Cint),
64
+ Ptr{UInt8 }, (Ptr{Void}, Cint),
65
65
stmt, col)
66
66
end
67
67
# SQLITE_API int sqlite3_bind_parameter_index(sqlite3_stmt*, const char *zName);
68
68
function sqlite3_bind_parameter_index (stmt:: Ptr{Void} ,value:: AbstractString )
69
69
@NULLCHECK stmt
70
70
return ccall ( (:sqlite3_bind_parameter_index , sqlite3_lib),
71
- Cint, (Ptr{Void},Ptr{Uint8 }),
71
+ Cint, (Ptr{Void},Ptr{UInt8 }),
72
72
stmt,utf8 (value))
73
73
end
74
74
# SQLITE_API int sqlite3_bind_double(sqlite3_stmt*, int, double);
@@ -103,21 +103,21 @@ end
103
103
function sqlite3_bind_text (stmt:: Ptr{Void} ,col:: Int ,value:: AbstractString )
104
104
@NULLCHECK stmt
105
105
return ccall ( (:sqlite3_bind_text , sqlite3_lib),
106
- Cint, (Ptr{Void},Cint,Ptr{Uint8 },Cint,Ptr{Void}),
106
+ Cint, (Ptr{Void},Cint,Ptr{UInt8 },Cint,Ptr{Void}),
107
107
stmt,col,value,sizeof (value),C_NULL )
108
108
end
109
109
# SQLITE_API int sqlite3_bind_text16(sqlite3_stmt*, int, const void*, int, void(*)(void*));
110
110
function sqlite3_bind_text16 (stmt:: Ptr{Void} ,col:: Int ,value:: UTF16String )
111
111
@NULLCHECK stmt
112
112
return ccall ( (:sqlite3_bind_text , sqlite3_lib),
113
- Cint, (Ptr{Void},Cint,Ptr{Uint16 },Cint,Ptr{Void}),
113
+ Cint, (Ptr{Void},Cint,Ptr{UInt16 },Cint,Ptr{Void}),
114
114
stmt,col,value,sizeof (value),C_NULL )
115
115
end
116
116
# SQLITE_API int sqlite3_bind_blob(sqlite3_stmt*, int, const void*, int n, void(*)(void*));
117
117
function sqlite3_bind_blob (stmt:: Ptr{Void} ,col:: Int ,value)
118
118
@NULLCHECK stmt
119
119
return ccall ( (:sqlite3_bind_blob , sqlite3_lib),
120
- Cint, (Ptr{Void},Cint,Ptr{Uint8 },Cint,Ptr{Void}),
120
+ Cint, (Ptr{Void},Cint,Ptr{UInt8 },Cint,Ptr{Void}),
121
121
stmt,col,value,sizeof (value),SQLITE_STATIC)
122
122
end
123
123
# SQLITE_API int sqlite3_bind_zeroblob(sqlite3_stmt*, int, int n);
182
182
function sqlite3_column_text (stmt:: Ptr{Void} ,col:: Int )
183
183
@NULLCHECK stmt
184
184
return ccall ( (:sqlite3_column_text , sqlite3_lib),
185
- Ptr{Uint8 }, (Ptr{Void},Cint),
185
+ Ptr{UInt8 }, (Ptr{Void},Cint),
186
186
stmt,col)
187
187
end
188
188
function sqlite3_column_text16 (stmt:: Ptr{Void} ,col:: Int )
@@ -208,13 +208,13 @@ end
208
208
function sqlite3_column_name (stmt:: Ptr{Void} ,n:: Int )
209
209
@NULLCHECK stmt
210
210
return ccall ( (:sqlite3_column_name , sqlite3_lib),
211
- Ptr{Uint8 }, (Ptr{Void},Cint),
211
+ Ptr{UInt8 }, (Ptr{Void},Cint),
212
212
stmt,n)
213
213
end
214
214
function sqlite3_column_name16 (stmt:: Ptr{Void} ,n:: Int )
215
215
@NULLCHECK stmt
216
216
return ccall ( (:sqlite3_column_name16 , sqlite3_lib),
217
- Ptr{Uint8 }, (Ptr{Void},Cint),
217
+ Ptr{UInt8 }, (Ptr{Void},Cint),
218
218
stmt,n)
219
219
end
220
220
@@ -253,13 +253,13 @@ end
253
253
# SQLITE_API void sqlite3_result_error(sqlite3_context*, const char*, int)
254
254
function sqlite3_result_error (context:: Ptr{Void} ,msg:: AbstractString )
255
255
return ccall ( (:sqlite3_result_error , sqlite3_lib),
256
- Void, (Ptr{Void},Ptr{Uint8 },Cint),
256
+ Void, (Ptr{Void},Ptr{UInt8 },Cint),
257
257
context,value,sizeof (msg)+ 1 )
258
258
end
259
259
# SQLITE_API void sqlite3_result_error16(sqlite3_context*, const void*, int)
260
260
function sqlite3_result_error (context:: Ptr{Void} ,msg:: UTF16String )
261
261
return ccall ( (:sqlite3_result_error16 , sqlite3_lib),
262
- Void, (Ptr{Void},Ptr{Uint16 },Cint),
262
+ Void, (Ptr{Void},Ptr{UInt16 },Cint),
263
263
context,value,sizeof (msg)+ 1 )
264
264
end
265
265
# SQLITE_API void sqlite3_result_int(sqlite3_context*, int);
@@ -283,19 +283,19 @@ end
283
283
# SQLITE_API void sqlite3_result_text(sqlite3_context*, const char*, int n, void(*)(void*));
284
284
function sqlite3_result_text (context:: Ptr{Void} ,value:: AbstractString )
285
285
return ccall ( (:sqlite3_result_text , sqlite3_lib),
286
- Void, (Ptr{Void},Ptr{Uint8 },Cint,Ptr{Void}),
286
+ Void, (Ptr{Void},Ptr{UInt8 },Cint,Ptr{Void}),
287
287
context,value,sizeof (value)+ 1 ,SQLITE_TRANSIENT)
288
288
end
289
289
# SQLITE_API void sqlite3_result_text16(sqlite3_context*, const void*, int, void(*)(void*));
290
290
function sqlite3_result_text16 (context:: Ptr{Void} ,value:: UTF16String )
291
291
return ccall ( (:sqlite3_result_text , sqlite3_lib),
292
- Void, (Ptr{Void},Ptr{Uint16 },Cint,Ptr{Void}),
292
+ Void, (Ptr{Void},Ptr{UInt16 },Cint,Ptr{Void}),
293
293
context,value,sizeof (value)+ 1 ,SQLITE_TRANSIENT)
294
294
end
295
295
# SQLITE_API void sqlite3_result_blob(sqlite3_context*, const void*, int n, void(*)(void*));
296
296
function sqlite3_result_blob (context:: Ptr{Void} ,value)
297
297
return ccall ( (:sqlite3_result_blob , sqlite3_lib),
298
- Void, (Ptr{Void},Ptr{Uint8 },Cint,Ptr{Void}),
298
+ Void, (Ptr{Void},Ptr{UInt8 },Cint,Ptr{Void}),
299
299
context,value,sizeof (value),SQLITE_TRANSIENT)
300
300
end
301
301
# SQLITE_API void sqlite3_result_zeroblob(sqlite3_context*, int n);
@@ -313,7 +313,7 @@ function sqlite3_create_function_v2(db::Ptr{Void},name::AbstractString,nargs::In
313
313
return ccall (
314
314
(:sqlite3_create_function_v2 , sqlite3_lib),
315
315
Cint,
316
- (Ptr{Void}, Ptr{Uint8 }, Cint, Cint, Ptr{Void},
316
+ (Ptr{Void}, Ptr{UInt8 }, Cint, Cint, Ptr{Void},
317
317
Ptr{Void}, Ptr{Void}, Ptr{Void}, Ptr{Void}),
318
318
db, name, nargs, enc, data, func, step, final, destructor)
319
319
end
371
371
# SQLITE_API const unsigned char* sqlite3_value_text(sqlite3_value*)
372
372
function sqlite3_value_text (value:: Ptr{Void} )
373
373
return ccall ( (:sqlite3_value_text , sqlite3_lib),
374
- Ptr{Uint8 }, (Ptr{Void},),
374
+ Ptr{UInt8 }, (Ptr{Void},),
375
375
value)
376
376
end
377
377
# SQLITE_API const void* sqlite3_value_text16(sqlite3_value*)
428
428
# SQLITE_API int sqlite3_extended_errcode(sqlite3 *db);
429
429
function sqlite3_errstr (ret:: Cint )
430
430
return ccall ( (:sqlite3_errstr , sqlite3_lib),
431
- Ptr{Uint8 }, (Cint,),
431
+ Ptr{UInt8 }, (Cint,),
432
432
ret)
433
433
end
434
434
# SQLITE_API const char *sqlite3_errstr(int);
@@ -456,19 +456,19 @@ end
456
456
# Not directly used
457
457
function sqlite3_open_v2 (file:: AbstractString ,handle:: Array{Ptr{Void},1} ,flags:: Cint ,vfs:: AbstractString )
458
458
return ccall ( (:sqlite3_open_v2 , sqlite3_lib),
459
- Cint, (Ptr{Uint8 },Ptr{Void},Cint,Ptr{Uint8 }),
459
+ Cint, (Ptr{UInt8 },Ptr{Void},Cint,Ptr{UInt8 }),
460
460
file,handle,flags,vfs)
461
461
end
462
462
function sqlite3_prepare (handle:: Ptr{Void} ,query:: AbstractString ,stmt:: Array{Ptr{Void},1} ,unused:: Array{Ptr{Void},1} )
463
463
@NULLCHECK handle
464
464
return ccall ( (:sqlite3_prepare , sqlite3_lib),
465
- Cint, (Ptr{Void},Ptr{Uint8 },Cint,Ptr{Void},Ptr{Void}),
465
+ Cint, (Ptr{Void},Ptr{UInt8 },Cint,Ptr{Void},Ptr{Void}),
466
466
handle,query,sizeof (query),stmt,unused)
467
467
end
468
468
function sqlite3_prepare16 (handle:: Ptr{Void} ,query:: AbstractString ,stmt:: Array{Ptr{Void},1} ,unused:: Array{Ptr{Void},1} )
469
469
@NULLCHECK handle
470
470
return ccall ( (:sqlite3_prepare16 , sqlite3_lib),
471
- Cint, (Ptr{Void},Ptr{Uint8 },Cint,Ptr{Void},Ptr{Void}),
471
+ Cint, (Ptr{Void},Ptr{UInt8 },Cint,Ptr{Void},Ptr{Void}),
472
472
handle,query,sizeof (query),stmt,unused)
473
473
end
474
474
function sqlite3_close_v2 (handle:: Ptr{Void} )
0 commit comments