DacpacParser Module
Module for parsing SQL Server Data Tools (SSDT) .dacpac files to extract database schema information. Provides functionality to read and parse the model.xml file contained within .dacpac packages.
Types and nested modules
Type/Module | Description |
Functions and values
Function or value | Description |
|
Extracts an XML attribute value from a node, returning an empty string if the attribute doesn't exist. This is a convenience function for cases where a default empty value is acceptable. param nm: The attribute name to extract param node: The XML node to extract from returns: The attribute value, or empty string if not found
|
|
|
Full Usage:
extractModelXml dacPacPath
Parameters:
string
Returns: string
|
|
|
Parses the model.xml content extracted from a SQL Server Data Tools (SSDT) .dacpac file. Extracts database schema information including tables, views, columns, relationships, and stored procedures. param xml: The XML content from the model.xml file returns: A parsed representation of the database schema
|
Full Usage:
toXmlNamespaceDoc ns xml
Parameters:
string
xml : string
Returns: XmlDocument * (string -> 'a -> XmlNode) * (string -> 'b -> XmlNode seq)
|
Creates an XML document with namespace support and returns helper functions for node selection. This is specifically designed for parsing SSDT model.xml files with their Microsoft namespace. param ns: The XML namespace URI param xml: The XML content to parse returns: A tuple containing (XmlDocument, single node selector function, multiple nodes selector function)
|