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 |
|
|
|
|
Represents a comment annotation for schema documentation. |
|
|
Represents a column in a constraint definition. |
|
|
|
|
|
Represents a table reference in relationship definitions. |
|
|
Represents a database table column from SSDT schema. |
|
|
|
|
|
Represents a foreign key relationship between tables. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Represents a database view from SSDT schema. |
|
|
Represents a view column from SSDT schema. |
|
|
|
|
|
|
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
|
|
Safely extracts an XML attribute value from a node, returning None if the attribute doesn't exist. param nm: The attribute name to extract param node: The XML node to extract from returns: Some(attribute value) if found, None otherwise
|
Full Usage:
extractModelXml dacPacPath
Parameters:
string
Returns: string
|
Extracts the model.xml file from a SQL Server Data Tools (SSDT) .dacpac package. The model.xml contains the complete database schema definition. param dacPacPath: Path to the .dacpac file returns: The XML content of the model.xml file as a 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)
Type parameters: 'a, 'b (requires :> System.Xml.XmlNode and :> System.Xml.XmlNode) |
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)
|