MySQL int expressions.
This commit is contained in:
parent
163ecf4c42
commit
fcce8d4262
19 changed files with 654 additions and 168 deletions
12
operators.go
12
operators.go
|
|
@ -2,6 +2,18 @@ package jet
|
|||
|
||||
import "errors"
|
||||
|
||||
// --------- Arithmetic operators -------------//
|
||||
|
||||
// MINUSi changes the sign of the intExp.
|
||||
func MINUSi(intExp IntegerExpression) IntegerExpression {
|
||||
return newPrefixIntegerOperator(intExp, "-")
|
||||
}
|
||||
|
||||
// MINUSi changes the sign of the intExp.
|
||||
func MINUSf(floatExp FloatExpression) FloatExpression {
|
||||
return newPrefixFloatOperator(floatExp, "-")
|
||||
}
|
||||
|
||||
//----------- Logical operators ---------------//
|
||||
|
||||
// NOT returns negation of bool expression result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue