Top |
GdaServerOperation: individual nodesGdaServerOperation: individual nodes — Getting information about parts (nodes) composing a path |
To each part of a path is associated a node (as a GdaServerOperationNode structure). For example the
"/TABLE_DEF_P/TABLE_NAME" path has two nodes, one associated to "/TABLE_DEF_P" and one to
"/TABLE_DEF_P/TABLE_NAME". For more information about the path's format, see the
gda_server_operation_set_value_at()
's documentation.
This API is designed to get information about all the nodes present in a GdaServerOperation object (refer to the
gda_server_operation_get_root_nodes()
function) and about each node of a path, and allows inspection
of its contents. It is mainly reserved for database provider's implementations but can have its purpose
outside of this scope.
GdaServerOperationNode * gda_server_operation_get_node_info (GdaServerOperation *op
,const gchar *path_format
,...
);
Get information about the node identified by path
. The returned GdaServerOperationNode structure can be
copied but not modified; it may change or cease to exist if op
changes
op |
a GdaServerOperation object |
|
path_format |
a complete path to a node (starting with "/") as a format string, similar to |
|
... |
the arguments to insert into the format string |
gchar **
gda_server_operation_get_root_nodes (GdaServerOperation *op
);
Get an array of strings containing the paths of nodes situated at the root of op
.
GdaServerOperationNodeType gda_server_operation_get_node_type (GdaServerOperation *op
,const gchar *path
,GdaServerOperationNodeStatus *status
);
Convenience function to get the type of a node.
op |
a GdaServerOperation object |
|
path |
a complete path to a node (starting with "/") |
|
status |
a place to store the status of the node, or |
[nullable] |
gchar * gda_server_operation_get_node_parent (GdaServerOperation *op
,const gchar *path
);
Get the complete path to the parent of the node defined by path
gchar * gda_server_operation_get_node_path_portion (GdaServerOperation *op
,const gchar *path
);
Get the last part of path