wrapper is not needress when not use libsqlite3

This commit is contained in:
Yasuhiro Matsumoto 2016-09-08 01:00:00 +09:00
parent bf2cfc371a
commit e63ddcaa1a
1 changed files with 1 additions and 7 deletions

View File

@ -17,12 +17,6 @@ package sqlite3
void stepTrampoline(sqlite3_context*, int, sqlite3_value**); void stepTrampoline(sqlite3_context*, int, sqlite3_value**);
void doneTrampoline(sqlite3_context*); void doneTrampoline(sqlite3_context*);
int
_sqlite3_trace_v2(sqlite3* db, unsigned mask, int(*xc)(unsigned,void*,void*,void*), void *ctx) {
return sqlite3_trace_v2(db, mask, xc, ctx);
}
void traceCallbackTrampoline(unsigned traceEventCode, void *ctx, void *p, void *x); void traceCallbackTrampoline(unsigned traceEventCode, void *ctx, void *p, void *x);
*/ */
import "C" import "C"
@ -408,7 +402,7 @@ func (c *SQLiteConn) SetTrace(requested *TraceConfig) error {
} }
func (c *SQLiteConn) setSQLiteTrace(sqliteEventMask uint) error { func (c *SQLiteConn) setSQLiteTrace(sqliteEventMask uint) error {
rv := C._sqlite3_trace_v2(c.db, rv := C.sqlite3_trace_v2(c.db,
C.uint(sqliteEventMask), C.uint(sqliteEventMask),
(*[0]byte)(unsafe.Pointer(C.traceCallbackTrampoline)), (*[0]byte)(unsafe.Pointer(C.traceCallbackTrampoline)),
unsafe.Pointer(c.db)) // Fourth arg is same as first: we are unsafe.Pointer(c.db)) // Fourth arg is same as first: we are