1 lock
The lock element limits access to a database table.
<lock
name='name'
mode='mode'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the table whose access must be restricted. | |||
Amode | string | Type of limitation: it can be share or exclusive; share blocks the 'write' access; exclusive also blocks the 'read' access. |
1.1 Example
In the following share example, it is prohibited to modify data in the table 'x'.
Example
Copy
<xsql-conversion> <lock table='x' mode='share' /> </xsql-conversion>