From 5958506ff7fa44366bf63f54461b5d7a257a483d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 29 Sep 2024 16:56:33 -0300 Subject: src/golite.go: Remove PreUpdateHook leftovers --- src/golite.go | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/golite.go') 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 -- cgit v1.2.3