C# Class PoorMansTSqlFormatterLib.Formatters.TSqlStandardFormatter

Inheritance: Interfaces.ISqlTreeFormatter
Show file Open project: rudi-bruchez/SQLTrismegiste Class Usage Examples

Public Properties

Property Type Description
KeywordMapping string>.IDictionary

Private Properties

Property Type Description
ExtractXmlBetween System.Xml.XmlNode
FirstSemanticElementChild System.Xml.XmlElement
FormatKeyword string
FormatOperator string
ProcessSqlNode void
ProcessSqlNodeList void
TSqlStandardFormatter System
WhiteSpace_BreakAsExpected void
WhiteSpace_SeparateComment void
WhiteSpace_SeparateStatements void
WhiteSpace_SeparateWords void

Public Methods

Method Description
FormatSQLTree ( XmlDocument sqlTreeDoc ) : string
TSqlStandardFormatter ( ) : System
TSqlStandardFormatter ( TSqlStandardFormatterOptions options ) : System

Private Methods

Method Description
ExtractXmlBetween ( XmlNode startingElement, XmlNode endingElement ) : XmlNode
FirstSemanticElementChild ( XmlElement contentElement ) : XmlElement
FormatKeyword ( string keyword ) : string
FormatOperator ( string operatorValue ) : string
ProcessSqlNode ( XmlElement contentElement, TSqlStandardFormattingState state ) : void
ProcessSqlNodeList ( XmlNodeList rootList, TSqlStandardFormattingState state ) : void
TSqlStandardFormatter ( string indentString, int spacesPerTab, int maxLineWidth, bool expandCommaLists, bool trailingCommas, bool spaceAfterExpandedComma, bool expandBooleanExpressions, bool expandCaseStatements, bool expandBetweenConditions, bool breakJoinOnSections, bool uppercaseKeywords, bool htmlColoring, bool keywordStandardization ) : System
WhiteSpace_BreakAsExpected ( TSqlStandardFormattingState state ) : void
WhiteSpace_SeparateComment ( XmlElement contentElement, TSqlStandardFormattingState state ) : void
WhiteSpace_SeparateStatements ( XmlElement contentElement, TSqlStandardFormattingState state ) : void
WhiteSpace_SeparateWords ( TSqlStandardFormattingState state ) : void

Method Details

FormatSQLTree() public method

public FormatSQLTree ( XmlDocument sqlTreeDoc ) : string
sqlTreeDoc System.Xml.XmlDocument
return string

TSqlStandardFormatter() public method

public TSqlStandardFormatter ( ) : System
return System

TSqlStandardFormatter() public method

public TSqlStandardFormatter ( TSqlStandardFormatterOptions options ) : System
options TSqlStandardFormatterOptions
return System

Property Details

KeywordMapping public property

public IDictionary KeywordMapping
return string>.IDictionary