![]() |
![]() |
![]() |
GNOME Data Access 4 manual | ![]() |
---|---|---|---|---|
Top | Description |
const gchar * gda_server_operation_get_sequence_name (GdaServerOperation *op, const gchar *path); guint gda_server_operation_get_sequence_size (GdaServerOperation *op, const gchar *path); guint gda_server_operation_get_sequence_max_size (GdaServerOperation *op, const gchar *path); guint gda_server_operation_get_sequence_min_size (GdaServerOperation *op, const gchar *path); gchar ** gda_server_operation_get_sequence_item_names (GdaServerOperation *op, const gchar *path); guint gda_server_operation_add_item_to_sequence (GdaServerOperation *op, const gchar *path); gboolean gda_server_operation_del_item_from_sequence (GdaServerOperation *op, const gchar *item_path);
The GdaServerOperation object can contain sequences of templates. For example when creating a table, one can specify several foreign keys where for each foreign key, one must define the column(s) on which the foreign key applies, the referenced table and the corresponding columns of the referenced table (plus some additional information). In this case the foreign keys are defined as a sequence of templates (the foreign key definition): there can be zero or more foreign keys.
const gchar * gda_server_operation_get_sequence_name (GdaServerOperation *op, const gchar *path);
|
a GdaServerOperation object |
|
a complete path to a sequence node (starting with "/") |
Returns : |
the name of the sequence at path
|
guint gda_server_operation_get_sequence_size (GdaServerOperation *op, const gchar *path);
|
a GdaServerOperation object |
|
a complete path to a sequence node (starting with "/") |
Returns : |
the number of items in the sequence at path , or 0 if path is not a sequence node
|
guint gda_server_operation_get_sequence_max_size (GdaServerOperation *op, const gchar *path);
|
a GdaServerOperation object |
|
a complete path to a sequence node (starting with "/") |
Returns : |
the maximum number of items in the sequence at path , or 0 if path is not a sequence node
|
guint gda_server_operation_get_sequence_min_size (GdaServerOperation *op, const gchar *path);
|
a GdaServerOperation object |
|
a complete path to a sequence node (starting with "/") |
Returns : |
the minimum number of items in the sequence at path , or 0 if path is not a sequence node
|
gchar ** gda_server_operation_get_sequence_item_names (GdaServerOperation *op, const gchar *path);
Fetch the contents of a sequence. path
can describe either a sequence (for example "/SEQNAME") or an item in a sequence
(for example "/SEQNAME/3")
|
a GdaServerOperation object |
|
a complete path to a sequence node (starting with "/") |
Returns : |
a array of strings containing the complete paths of the nodes contained at path (free with g_strfreev() )
|
guint gda_server_operation_add_item_to_sequence (GdaServerOperation *op, const gchar *path);
|
a GdaServerOperation object |
|
|
Returns : |
the index of the new entry in the sequence (like 5 for example if a 6th item has been added to the sequence. |
gboolean gda_server_operation_del_item_from_sequence (GdaServerOperation *op, const gchar *item_path);
|
a GdaServerOperation object |
|
the path to the sequence's item to remove (like "/SEQ_NAME/5" for instance) |
Returns : |
TRUE if the specified node has been removed from the sequence |