prepare_create_table
Description:
public static ServerOperation? prepare_create_table (Connection cnc, string table_name, Error error, ...)
Add more arguments if the flag needs them:
GDA_SERVER_OPERATION_CREATE_TABLE_FKEY_FLAG:
- string with the table's name referenced
- an integer with the number pairs "local_field", "referenced_field" used in the reference
- Pairs of "local_field", "referenced_field" to use, must match the number specified above.
- a string with the action for ON DELETE; can be: "RESTRICT", "CASCADE", "NO ACTION", "SET NULL" and "SET DEFAULT". Example: "ON UPDATE CASCADE".
- a string with the action for ON UPDATE (see above).
Create a ServerOperation object using an opened connection, taking three
arguments, a column's name the column's GType and
ServerOperationCreateTableFlag flag, you need to finish the list using null
.
You'll be able to modify the ServerOperation object to add custom options * to the operation. When finished call perform_create_table or perform_operation in order to execute the operation.
Parameters:
cnc |
an opened connection |
table_name |
name of the table to create |
error |
a place to store errors, or |
... |
group of three arguments for column's name, column's Type and a
ServerOperationCreateTableFlag flag, finished with |
Returns:
a ServerOperation if no errors; NULL and set |