Table of Contents

Class GFmtOpt

Namespace
gudusoft.gsqlparser.pp.para
Assembly
gudusoft.gsqlparser.dll

the format options

@author zhoujun

public class GFmtOpt
Inheritance
GFmtOpt
Inherited Members

Constructors

GFmtOpt(string)

public GFmtOpt(string sessionId)

Parameters

sessionId string

Fields

alignAliasInSelectList

public bool alignAliasInSelectList

Field Value

bool

alignJoinWithFromKeyword

align 'join' keyword with 'from' keyword

public bool alignJoinWithFromKeyword

Field Value

bool

andOrUnderWhere

in the where clause, the 'and' and 'or' keyword should under the 'where' keyword

public bool andOrUnderWhere

Field Value

bool

beStyleBlockIndentSize

public int beStyleBlockIndentSize

Field Value

int

beStyleBlockLeftBEIndentSize

public int beStyleBlockLeftBEIndentSize

Field Value

int

beStyleBlockLeftBEOnNewline

public bool beStyleBlockLeftBEOnNewline

Field Value

bool

beStyleBlockRightBEIndentSize

public int beStyleBlockRightBEIndentSize

Field Value

int

beStyleCreatetableLeftBEOnNewline

public bool beStyleCreatetableLeftBEOnNewline

Field Value

bool

beStyleCreatetableRightBEOnNewline

public bool beStyleCreatetableRightBEOnNewline

Field Value

bool

beStyleFunctionBodyIndent

public int beStyleFunctionBodyIndent

Field Value

int

beStyleFunctionFirstParamInNewline

public bool beStyleFunctionFirstParamInNewline

Field Value

bool

beStyleFunctionLeftBEIndentSize

public int beStyleFunctionLeftBEIndentSize

Field Value

int

beStyleFunctionLeftBEOnNewline

public bool beStyleFunctionLeftBEOnNewline

Field Value

bool

beStyleFunctionRightBEIndentSize

public int beStyleFunctionRightBEIndentSize

Field Value

int

beStyleFunctionRightBEOnNewline

public bool beStyleFunctionRightBEOnNewline

Field Value

bool

beStyleIfElseSingleStmtIndentSize

public int beStyleIfElseSingleStmtIndentSize

Field Value

int

caseDatatype

public TCaseOption caseDatatype

Field Value

TCaseOption

caseFuncname

public TCaseOption caseFuncname

Field Value

TCaseOption

caseIdentifier

public TCaseOption caseIdentifier

Field Value

TCaseOption

caseKeywords

public TCaseOption caseKeywords

Field Value

TCaseOption

caseQuotedIdentifier

public TCaseOption caseQuotedIdentifier

Field Value

TCaseOption

caseWhenThenInSameLine

public bool caseWhenThenInSameLine

Field Value

bool

compactMode

public TCompactMode compactMode

Field Value

TCompactMode

createtableFieldlistAlignOption

public TAlignOption createtableFieldlistAlignOption

Field Value

TAlignOption

createtableListitemInNewLine

public bool createtableListitemInNewLine

Field Value

bool

cteNewlineBeforeAs

public bool cteNewlineBeforeAs

Field Value

bool

defaultAligntype

public TAlignStyle defaultAligntype

Field Value

TAlignStyle

defaultCommaOption

public TLinefeedsCommaOption defaultCommaOption

Field Value

TLinefeedsCommaOption

emptyLines

public TEmptyLinesOption emptyLines

Field Value

TEmptyLinesOption

fromClauseInNewLine

each column in the table names in the form clause should start with a new line.

public bool fromClauseInNewLine

Field Value

bool

functionCallParametersComma

public TLinefeedsCommaOption functionCallParametersComma

Field Value

TLinefeedsCommaOption

functionCallParametersStyle

public TAlignStyle functionCallParametersStyle

Field Value

TAlignStyle

indentCaseFromSwitch

public int indentCaseFromSwitch

Field Value

int

indentCaseThen

public int indentCaseThen

Field Value

int

indentLen

public int indentLen

Field Value

int

insertBlankLineInBatchSqls

public bool insertBlankLineInBatchSqls

Field Value

bool

insertColumnlistStyle

the align style for the insert coloumn

public TAlignStyle insertColumnlistStyle

Field Value

TAlignStyle

insertValuelistStyle

the value style in insert statement

public TAlignStyle insertValuelistStyle

Field Value

TAlignStyle

lineWidth

public int lineWidth

Field Value

int

linebreakAfterDeclare

declare statement

public bool linebreakAfterDeclare

Field Value

bool

linebreakBeforeParamInExec

used for execute statement

public bool linebreakBeforeParamInExec

Field Value

bool

linenumberEnabled

public bool linenumberEnabled

Field Value

bool

linenumberLeftMargin

public int linenumberLeftMargin

Field Value

int

linenumberRightMargin

public int linenumberRightMargin

Field Value

int

linenumberZeroBased

public bool linenumberZeroBased

Field Value

bool

noEmptyLinesBetweenMultiSetStmts

public bool noEmptyLinesBetweenMultiSetStmts

Field Value

bool

operateSourceToken

if it is true, the helper class will operate the source tokens. if not, the helper class will ignore the opearation request

public bool operateSourceToken

Field Value

bool

outputFmt

public GOutputFmt outputFmt

Field Value

GOutputFmt

parametersComma

public TLinefeedsCommaOption parametersComma

Field Value

TLinefeedsCommaOption

parametersStyle

public TAlignStyle parametersStyle

Field Value

TAlignStyle

removeComment

public bool removeComment

Field Value

bool

selectColumnlistComma

the comma style in select statement

public TLinefeedsCommaOption selectColumnlistComma

Field Value

TLinefeedsCommaOption

selectColumnlistStyle

the align style for the select coloumn

public TAlignStyle selectColumnlistStyle

Field Value

TAlignStyle

selectFromclauseComma

the comma style in the from clause

public TLinefeedsCommaOption selectFromclauseComma

Field Value

TLinefeedsCommaOption

selectFromclauseJoinOnInNewline

the join clause should start with a new line.

public bool selectFromclauseJoinOnInNewline

Field Value

bool

selectFromclauseStyle

the table name style in the from clause

public TAlignStyle selectFromclauseStyle

Field Value

TAlignStyle

selectItemInNewLine

each column in the select statement should append a new line.

public bool selectItemInNewLine

Field Value

bool

selectKeywordsAlignOption

public TAlignOption selectKeywordsAlignOption

Field Value

TAlignOption

sessionId

the session id. each thread can own only one id.

public readonly string sessionId

Field Value

string

tabHtmlString

public string tabHtmlString

Field Value

string

tabSize

public int tabSize

Field Value

int

treatDistinctAsVirtualColumn

public bool treatDistinctAsVirtualColumn

Field Value

bool

useTab

public bool useTab

Field Value

bool

wsPaddingOperatorArithmetic

public bool wsPaddingOperatorArithmetic

Field Value

bool

wsPaddingParenthesesInExpression

public bool wsPaddingParenthesesInExpression

Field Value

bool

wsPaddingParenthesesInFunction

public bool wsPaddingParenthesesInFunction

Field Value

bool

wsPaddingParenthesesInFunctionCall

public bool wsPaddingParenthesesInFunctionCall

Field Value

bool

wsPaddingParenthesesOfSubQuery

public bool wsPaddingParenthesesOfSubQuery

Field Value

bool

wsPaddingParenthesesOfTypename

public bool wsPaddingParenthesesOfTypename

Field Value

bool