Debian Codegraph @

sqlite3_opt_preupdate_omit.go

raw
1 // Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
2 // Copyright (C) 2018 segment.com <[email protected]>
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
9 package sqlite3
10
11 // RegisterPreUpdateHook sets the pre-update hook for a connection.
12 //
13 // The callback is passed a SQLitePreUpdateData struct with the data for
14 // the update, as well as methods for fetching copies of impacted data.
15 //
16 // If there is an existing preupdate hook for this connection, it will be
17 // removed. If callback is nil the existing hook (if any) will be removed
18 // without creating a new one.
19 func (c *SQLiteConn) RegisterPreUpdateHook(callback func(SQLitePreUpdateData)) {
20 // NOOP
21 }