A transaction is a set of operations who share a common objective and are interdependent. This set also accomplish the ACID properties. The acronym ACID responds to the terms explained below:
- Atomicity: the set of actions has an atomic character, it means that the operations are carried out in their entirety or none is done.
- Consistency: A transaction mantains the consistency of the data, transforming them from a coherent initial state to an equally coherent final state.
- Isolation: Each transaction behave as if it were the only one running on the system, although other transactions are running at the same time.
- Durability: If a transaction is successful, the system guarantees that your updates are maintained, even if the equipment fails immediately after confirmation.
- Axional Studio XSQL-Script allows at most one transaction initiated at any time.
1 connection
Allow to establish a connection to a database.
<connection
name='name'
as='as'
password='password'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | String | Code of the database to which you want to establish the connection. This code should be registered in the database maintenance, in the database configuration wic_conf. | |||
Aas | String | La conexión la realiza con un usuario distinto al usuario actual. Cuando se coloca el atributo as también se debe informar el password. | |||
Apassword | String | Contraseña del usuario colocado en el atributo as. Cuando se intenta realizar una conexión con otro usuario debe informarse la contraseña de este usuario. |
Example
Realize a conection with another user in the database oracle_erp_lin.
Copy
<xsql-script name='sample_conection'> <body> <connection name='oracle_erp_lin' as='ped' password='xxxxxxx'> <println> <select> <columns> count(*) </columns> <from table='ctercero' /> </select> </println> </connection> </body> </xsql-script>