diff options
author | 2021-07-06 13:29:11 +0200 | |
---|---|---|
committer | 2021-07-06 13:29:11 +0200 | |
commit | 356857921897c0fb91add7f94e8944dd7e6c57b5 (patch) | |
tree | 2f6d8d42b6eba0ef3bc693c04be712bcef2af1d3 /internal/db/db.go | |
parent | Domain block (#76) (diff) | |
download | gotosocial-356857921897c0fb91add7f94e8944dd7e6c57b5.tar.xz |
Blocklist import (#77)
* first steps on importing blocklists
* unblock domains properly
Diffstat (limited to 'internal/db/db.go')
-rw-r--r-- | internal/db/db.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/db.go b/internal/db/db.go index 1ec02d22c..1d7ed8b58 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -86,6 +86,9 @@ type DB interface { // UpdateOneByID updates interface i with database the given database id. It will update one field of key key and value value. UpdateOneByID(id string, key string, value interface{}, i interface{}) error + // UpdateWhere updates column key of interface i with the given value, where the given parameters apply. + UpdateWhere(where []Where, key string, value interface{}, i interface{}) error + // DeleteByID removes i with id id. // If i didn't exist anyway, then no error should be returned. DeleteByID(id string, i interface{}) error |