Files
sqlite3/sqlite3/pointer.c
Nuno Cruces 22d1ae0068 Tweaks.
2023-11-21 09:45:47 +00:00

17 lines
508 B
C

#include "include.h"
#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);
}