sqlite3_opt_preupdate_omit.go 770 B

12345678910111213141516171819202122
  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 preupdate 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. }