class Macros extends AnyRef
- Alphabetic
- By Inheritance
- Macros
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Macros()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def _deferred_build(b: ORT, exp: Exp): DeferredBuildExpr
- def _delete_missing_children(b: ORT, objName: ConstExpr, key: ArrExpr, keyValExprs: ArrExpr, deleteExpr: Expr): DeleteMissingChildrenExpr
- def _id_by_key(b: ORT, idExpr: Expr): IdByKeyExpr
- def _id_ref_id(b: ORT, idRef: IdentExpr, id: IdentExpr): IdRefIdExpr
-
def
_lookup_upsert(b: ORT, objProp: ConstExpr, idProp: ConstExpr, lookupUpsertExpr: Expr, idSelExpr: Expr): LookupUpsertExpr
Below ORT functionality macros
- def _not_delete_keys(b: ORT, key: ArrExpr, keyValExprs: ArrExpr): NotDeleteKeysExpr
- def _update_by_key(b: ORT, table: IdentExpr, setIdExpr: Expr, updateExpr: Expr): UpdateByKeyExpr
- def _upsert(b: ORT, updateExpr: Expr, insertExpr: Expr): UpsertExpr
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bin_op_function(b: QueryBuilder, op: ConstExpr, lop: Expr, rop: Expr): Expr
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
concat_exps(p: QueryParsers, prefix: Exp, sep: Exp, postfix: Exp, exprs: Exp*): Exp
Similar to scala
Similar to scala
list.mkString(start, sep, end)
method prefix, sep, postfix parameters must be string constants Resulting string must be parseable tresql expression
list.mkString(start, sep, end) }}} prefix, sep, postfix parameters must be string constants Resulting string must be parseable tresql expression
-
def
dynamic_table(b: QueryBuilder, table_name: VarExpr): Table
Allows to specify table name as bind variable value.
Allows to specify table name as bind variable value. Like
[]dynamic_table(:table)[deptno = 10]{dname} -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def if_all_defined(b: QueryBuilder, e: Expr*): Expr
- def if_all_missing(b: QueryBuilder, e: Expr*): Expr
- def if_any_defined(b: QueryBuilder, e: Expr*): Expr
- def if_any_missing(b: QueryBuilder, e: Expr*): Expr
- def if_defined(b: QueryBuilder, v: Expr, e: Expr): Expr
- def if_defined_or_else(b: QueryBuilder, v: Expr, e1: Expr, e2: Expr): Expr
- def if_missing(b: QueryBuilder, v: Expr, e: Expr): Expr
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map_exps(p: QueryParsers, exp: Exp): Exp
Transforms expression passed in an argument as follows:
Transforms expression passed in an argument as follows:
- Finds array expressions in an argument and checks whether all arrays are equal (otherwise throws assertion error) 2. maps all elements in an array found to transformed expression which replaces array found with concrete element 3. Returns resulting array expression
Examples:
map_exprs(parser, parser.parseExp("x || [a, b, c]")).tresqlreturns
[x || a, x || b, x || c]
map_exprs(parser, parser.parseExp("fun(x || [a, b, c] || y, [a, b, c])")).tresqlreturns
[fun(x || a || y, a), fun(x || b || y, b), fun(x || c || y, c)]
NOTE: function may throw an error array element is transformed into the place where array is required, like in Values expresion for example.
map_exprs(parser, parser.parseExp("fun(x || [a, b, c] || y, [a, b, c])")).tresql }}}
[fun(x || a || y, a), fun(x || b || y, b), fun(x || c || y, c)]
NOTE: function may throw an error array element is transformed into the place where array is required, like in Values expresion for example.
map_exprs(parser, parser.parseExp("x || [a, b, c]")).tresql }}}
[x || a, x || b, x || c]
map_exprs(parser, parser.parseExp("fun(x || [a, b, c] || y, [a, b, c])")).tresqlreturns
[fun(x || a || y, a), fun(x || b || y, b), fun(x || c || y, c)]
NOTE: function may throw an error array element is transformed into the place where array is required, like in Values expresion for example.
map_exprs(parser, parser.parseExp("fun(x || [a, b, c] || y, [a, b, c])")).tresql }}}
[fun(x || a || y, a), fun(x || b || y, b), fun(x || c || y, c)]
NOTE: function may throw an error array element is transformed into the place where array is required, like in Values expresion for example.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def sql(b: QueryBuilder, const: ConstExpr): SQLExpr
- def sql_concat(b: QueryBuilder, exprs: Expr*): Expr
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated