mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 22:19:14 +00:00
Towards virtual tables.
This commit is contained in:
16
sqlite3/pointer.c
Normal file
16
sqlite3/pointer.c
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#include "sqlite3.h"
|
||||
|
||||
#define GO_POINTER_TYPE "github.com/ncruces/go-sqlite3.Pointer"
|
||||
|
||||
int sqlite3_bind_pointer_go(sqlite3_stmt *stmt, int i, go_handle app) {
|
||||
return sqlite3_bind_pointer(stmt, i, app, GO_POINTER_TYPE, go_destroy);
|
||||
}
|
||||
|
||||
void sqlite3_result_pointer_go(sqlite3_context *ctx, go_handle app) {
|
||||
sqlite3_result_pointer(ctx, app, GO_POINTER_TYPE, go_destroy);
|
||||
}
|
||||
|
||||
go_handle sqlite3_value_pointer_go(sqlite3_value *val) {
|
||||
return sqlite3_value_pointer(val, GO_POINTER_TYPE);
|
||||
}
|
||||
Reference in New Issue
Block a user