diff options
Diffstat (limited to 'internal/db/params.go')
-rw-r--r-- | internal/db/params.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/db/params.go b/internal/db/params.go index f0c384435..dbbf734a1 100644 --- a/internal/db/params.go +++ b/internal/db/params.go @@ -22,9 +22,13 @@ package db type Where struct { // The table to search on. Key string - // The value that must be set. + // The value to match. Value interface{} // Whether the value (if a string) should be case sensitive or not. // Defaults to false. CaseInsensitive bool + // If set, reverse the where. + // `WHERE k = v` becomes `WHERE k != v`. + // `WHERE k IS NULL` becomes `WHERE k IS NOT NULL` + Not bool } |