aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-09-29 16:56:33 -0300
committerEuAndreh <eu@euandre.org>2024-10-01 07:48:48 -0300
commit5958506ff7fa44366bf63f54461b5d7a257a483d (patch)
treebb2aa7deed198d921b51949ffdbd337943d87283
parentsrc/golite.go: Remove errorMsg unused var (diff)
downloadgolite-5958506ff7fa44366bf63f54461b5d7a257a483d.tar.gz
golite-5958506ff7fa44366bf63f54461b5d7a257a483d.tar.xz
src/golite.go: Remove PreUpdateHook leftovers
-rw-r--r--src/golite.go27
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