diff options
author | xengineering <me@xengineering.eu> | 2024-02-15 20:35:21 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-02-15 20:35:21 +0100 |
commit | 38ee758c3d553faae683169eb74f2e6de0ab4207 (patch) | |
tree | 95009151b40901466fc7524e13feaddf9eb51528 /vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go | |
parent | bfd936ab717c6d4e4e50bbd0f797c3d1fc7eda42 (diff) | |
download | ceres-38ee758c3d553faae683169eb74f2e6de0ab4207.tar ceres-38ee758c3d553faae683169eb74f2e6de0ab4207.tar.zst ceres-38ee758c3d553faae683169eb74f2e6de0ab4207.zip |
Update github.com/mattn/go-sqlite3 to v1.14.22
Diffstat (limited to 'vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go')
-rw-r--r-- | vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go b/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go index b43e482..8cce278 100644 --- a/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go +++ b/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go @@ -4,6 +4,7 @@ // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. +//go:build sqlite_preupdate_hook // +build sqlite_preupdate_hook package sqlite3 @@ -54,10 +55,10 @@ func (d *SQLitePreUpdateData) Count() int { return int(C.sqlite3_preupdate_count(d.Conn.db)) } -func (d *SQLitePreUpdateData) row(dest []interface{}, new bool) error { +func (d *SQLitePreUpdateData) row(dest []any, new bool) error { for i := 0; i < d.Count() && i < len(dest); i++ { var val *C.sqlite3_value - var src interface{} + var src any // Initially I tried making this just a function pointer argument, but // it's absurdly complicated to pass C function pointers. @@ -95,7 +96,7 @@ func (d *SQLitePreUpdateData) row(dest []interface{}, new bool) error { // Old populates dest with the row data to be replaced. This works similar to // database/sql's Rows.Scan() -func (d *SQLitePreUpdateData) Old(dest ...interface{}) error { +func (d *SQLitePreUpdateData) Old(dest ...any) error { if d.Op == SQLITE_INSERT { return errors.New("There is no old row for INSERT operations") } @@ -104,7 +105,7 @@ func (d *SQLitePreUpdateData) Old(dest ...interface{}) error { // New populates dest with the replacement row data. This works similar to // database/sql's Rows.Scan() -func (d *SQLitePreUpdateData) New(dest ...interface{}) error { +func (d *SQLitePreUpdateData) New(dest ...any) error { if d.Op == SQLITE_DELETE { return errors.New("There is no new row for DELETE operations") } |