mirror of
https://github.com/safing/portbase
synced 2025-09-10 15:34:26 +00:00
Add query package with first set of conditions and tests
This commit is contained in:
parent
1bf7e42d8a
commit
6ed50f34fb
16 changed files with 933 additions and 0 deletions
19
database/query/condition-error.go
Normal file
19
database/query/condition-error.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package query
|
||||
|
||||
type errorCondition struct {
|
||||
err error
|
||||
}
|
||||
|
||||
func newErrorCondition(err error) *errorCondition {
|
||||
return &errorCondition{
|
||||
err: err,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *errorCondition) complies(f Fetcher) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *errorCondition) check() error {
|
||||
return c.err
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue