Scalable, high reliable enterprise database application often require some bussines logic is attached to database level, while other may be writen in server level.

 

1 Database logic

Stored procedures, functions and triggers can be written using XSQL language extensions. The appropriate code for the target database agent will be produced during model deployment (compilation time).

 

1.1 Functions

Menu path:
Business logic / Functions
This form allows you to define a user function or routine.
wic_xudf_object
Label Description
Code Code of the function XUDF

  • Case: Downshift
Database Limit update in database
Order Order to create function to satisfy dependences
Description Short text description of the function
Size Function size

  • Default: size(xudf_data)
Rows Number of rows in the code

  • Default: rows(xudf_data)
CRC CRC checksum number

  • Default: dcrc-32(xudf_data)
Locked Locked edition

  • Default: 0
  • Values:
    • 1: Yes.
    • 0: No.
Function Function

Call to routines Call to routines
Routines that call the actual Routines that call the actual
Call flow Call flow
User created User that has created the object

  • Default: USER
Date created Creation date

  • Default: CURRENT
User updated User updated

  • Default: USER
Date updated Updated date

  • Default: CURRENT
Actions
Button Title Notes
BUT_GENERAR_DELTA Generate delta null
BUT_SCHEMA_CODE Compile code null

 

1.2 Stored procedures

Menu path:
Business logic / Procedures
This form allows to define a user procedure.