diff options
author | EuAndreh <eu@euandre.org> | 2024-09-29 16:56:33 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-01 07:48:48 -0300 |
commit | 5958506ff7fa44366bf63f54461b5d7a257a483d (patch) | |
tree | bb2aa7deed198d921b51949ffdbd337943d87283 /src/golite.go | |
parent | src/golite.go: Remove errorMsg unused var (diff) | |
download | golite-5958506ff7fa44366bf63f54461b5d7a257a483d.tar.gz golite-5958506ff7fa44366bf63f54461b5d7a257a483d.tar.xz |
src/golite.go: Remove PreUpdateHook leftovers
Diffstat (limited to 'src/golite.go')
-rw-r--r-- | src/golite.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/golite.go b/src/golite.go index 442c6c9..77d32eb 100644 --- a/src/golite.go +++ b/src/golite.go @@ -3373,33 +3373,6 @@ func (s *SQLiteStmt) ColumnTableName(n int) string { return C.GoString(C.sqlite3_column_table_name(s.s, C.int(n))) } -// SQLitePreUpdateData represents all of the data available during a -// pre-update hook call. -type SQLitePreUpdateData struct { - Conn *SQLiteConn - Op int - DatabaseName string - TableName string - OldRowID int64 - NewRowID int64 -} - -// RegisterPreUpdateHook sets the pre-update hook for a connection. -// -// The callback is passed a SQLitePreUpdateData struct with the data for -// the update, as well as methods for fetching copies of impacted data. -// -// If there is an existing preupdate hook for this connection, it will be -// removed. If callback is nil the existing hook (if any) will be removed -// without creating a new one. -func (c *SQLiteConn) RegisterPreUpdateHook(callback func(SQLitePreUpdateData)) { - if callback == nil { - // C.sqlite3_preupdate_hook(c.db, nil, nil) - } else { - // C.sqlite3_preupdate_hook(c.db, (*[0]byte)(unsafe.Pointer(C.preUpdateHookTrampoline)), unsafe.Pointer(newHandle(c, callback))) - } -} - // Serialize returns a byte slice that is a serialization of the database. // // See https://www.sqlite.org/c3ref/serialize.html |