mirror of
https://github.com/safing/portbase
synced 2025-09-10 15:34:26 +00:00
Finish minimal feature set, start with tests
This commit is contained in:
parent
3d60431376
commit
06a34f931e
34 changed files with 651 additions and 346 deletions
|
@ -3,6 +3,8 @@ package query
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/Safing/portbase/database/accessor"
|
||||
)
|
||||
|
||||
type existsCondition struct {
|
||||
|
@ -17,8 +19,8 @@ func newExistsCondition(key string, operator uint8) *existsCondition {
|
|||
}
|
||||
}
|
||||
|
||||
func (c *existsCondition) complies(f Fetcher) bool {
|
||||
return f.Exists(c.key)
|
||||
func (c *existsCondition) complies(acc accessor.Accessor) bool {
|
||||
return acc.Exists(c.key)
|
||||
}
|
||||
|
||||
func (c *existsCondition) check() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue