db_rdbms_parse_from_xml_node (private)

 db_rdbms_parse_from_xml_node rdbms_node

Defined in packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl

Parse an RDBMS struct from an XML fragment node

Parameters:
rdbms_node

Partial Call Graph (max 5 caller/called nodes):
%3 db_qd_internal_parse_init db_qd_internal_parse_init (private) db_rdbms_parse_from_xml_node db_rdbms_parse_from_xml_node db_qd_internal_parse_init->db_rdbms_parse_from_xml_node db_qd_internal_parse_one_query_from_xml_node db_qd_internal_parse_one_query_from_xml_node (private) db_qd_internal_parse_one_query_from_xml_node->db_rdbms_parse_from_xml_node db_qd_log db_qd_log (private) db_rdbms_parse_from_xml_node->db_qd_log xml_node_get_content xml_node_get_content (public) db_rdbms_parse_from_xml_node->xml_node_get_content xml_node_get_first_child_by_name xml_node_get_first_child_by_name (public) db_rdbms_parse_from_xml_node->xml_node_get_first_child_by_name xml_node_get_name xml_node_get_name (public) db_rdbms_parse_from_xml_node->xml_node_get_name

Testcases:
No testcase defined.
Source code:
    #
    # Check if the DOM node refers to a RDBMS.
    #
    if {[xml_node_get_name $rdbms_node] ne "rdbms"} {
        db_qd_log Debug "db_rdbms_parse_from_xml_node: PARSER = BAD RDBMS NODE!"
        return {}
    }

    # Get the type and version tags
    set type [xml_node_get_content [xml_node_get_first_child_by_name $rdbms_node type]]
    set version [xml_node_get_content [xml_node_get_first_child_by_name $rdbms_node version]]

    # db_qd_log QDDebug "PARSER = RDBMS parser - $type - $version"

    return [list type $type version $version]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: