query on Schema

All the queries that are used for the definition of conditions and for the execution of actions are based on the expression engine 3xpr

LambdaOrm functions

In addition to the operations and functions defined in 3xpr lambdaorm extends the expression model with the following functions.

Function Description
toBase64(value:string):string Encode a string to base64
getBase64(value:string):string Decode a base64 string
encrypt(value:string,key:string):string Encrypt a string with a key
decrypt(value:string,key:string):string Decrypt a string with a key
orm.execute(query:string,data:any,options:any):any Execute an query and return the result
orm.plan(query:string,options:any):any Return the execution plan of the query
orm.metadata(query:string):any Return the metadata of the query
orm.model(query:string):any Return the model of the query
orm.parameters(query:string):any Return the parameters of the query
orm.constraints(query:string):any Return the constraints of the query

Service functions

In addition to the operations and functions defined in 3xpr and lambdaorm, lambdaOrm Service extends the expression model with the following functions.

Function Description
kafka.send(topic:string,messages:any[]):void Send a message to a kafka topic

Example:

application:
  listeners:
    - name: syncInsights
      on: [insert, bulkInsert, update, delete ]
      condition: options.stage.in("default","cqrs")
       after: kafka.send("insights-sync",[{query:query,data:data}])