Fetch the repository succeeded.
package orm
type op string
func (o op) string() string {
return string(o)
}
const (
opEq = " = "
opLt = " < "
opGt = " > "
opAND = " AND "
opOR = " OR "
opNot = "NOT "
opPlus = " + "
)
type Predicate struct {
left Expression
op op
right Expression
}
func (left Predicate) expr() {}
func (left Predicate) And(right Predicate) Predicate {
return Predicate{
left: left,
op: opAND,
right: right,
}
}
func (left Predicate) Or(right Predicate) Predicate {
return Predicate{
left: left,
op: opOR,
right: right,
}
}
func Not(right Predicate) Predicate {
return Predicate{
op: opNot,
right: right,
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。