sqlite3_opt_preupdate_omit.go 811 B

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