sqlite3_opt_preupdate_omit.go (811B)
1 // Copyright (C) 2019 G.J.R. Timmer <gjr.timmer@gmail.com>. 2 // Copyright (C) 2018 segment.com <friends@segment.com> 3 // 4 // Use of this source code is governed by an MIT-style 5 // license that can be found in the LICENSE file. 6 7 //go:build !sqlite_preupdate_hook && cgo 8 // +build !sqlite_preupdate_hook,cgo 9 10 package sqlite3 11 12 // RegisterPreUpdateHook sets the pre-update hook for a connection. 13 // 14 // The callback is passed a SQLitePreUpdateData struct with the data for 15 // the update, as well as methods for fetching copies of impacted data. 16 // 17 // If there is an existing preupdate hook for this connection, it will be 18 // removed. If callback is nil the existing hook (if any) will be removed 19 // without creating a new one. 20 func (c *SQLiteConn) RegisterPreUpdateHook(callback func(SQLitePreUpdateData)) { 21 // NOOP 22 }