You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sqlite3_opt_preupdate_omit.go 767B

123456789101112131415161718192021
  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. // +build !sqlite_preupdate_hook,cgo
  7. package sqlite3
  8. // RegisterPreUpdateHook sets the pre-update hook for a connection.
  9. //
  10. // The callback is passed a SQLitePreUpdateData struct with the data for
  11. // the update, as well as methods for fetching copies of impacted data.
  12. //
  13. // If there is an existing update hook for this connection, it will be
  14. // removed. If callback is nil the existing hook (if any) will be removed
  15. // without creating a new one.
  16. func (c *SQLiteConn) RegisterPreUpdateHook(callback func(SQLitePreUpdateData)) {
  17. // NOOP
  18. }