Skip to content

PP V3 format options

Tako Lee edited this page Feb 24, 2024 · 37 revisions

Overview of current supported format options:

image

Alignments

image

  • gfmtopt.Select_keywords_alignOption, type of TAlignOption
  • gfmtopt.TrueLeft, type of boolean

BlankLines

image

  • gfmtopt.EmptyLines, type of TEmptyLinesOption
  • gfmtopt.InsertBlankLineInBatchSqls, type of boolean
  • gfmtopt.NoEmptyLinesBetweenMultiSetStmts, type of boolean
  • gfmtopt.OnlyInsertBlankAfterGo, type of boolean

Capitalisation

image

  • gfmtopt.case_keywords, type of TCaseOption

  • gfmtopt.case_identifier, type of TCaseOption

  • gfmtopt.case_quoted_identifier, type of TCaseOption

  • gfmtopt.case_funcname, type of TCaseOption

  • gfmtopt.case_builtinfunc, type of TCaseOption

  • gfmtopt.case_datatype, type of TCaseOption

  • gfmtopt.case_table_name, type of TCaseOption

  • gfmtopt.case_column_name, type of TCaseOption

  • gfmtopt.case_alias_name, type of TCaseOption

  • gfmtopt.case_column_alias, type of TCaseOption

  • gfmtopt.case_variable_name, type of TCaseOption

  • gfmtopt.case_prefix_identitfer, type of TCaseOption

  • gfmtopt.identifier_prefix_list, type of String

  • gfmtopt.DictionaryFile, type of String

  • gfmtopt.tableOrColumnCaseMappingFile, type of String

  • gFmtOpt.wordSeparator, type of String

Case Expression

image

  • gfmtopt.CaseWhenThenInSameLine, type of boolean gfmtopt.Indent_CaseFromSwitch, type of integer,default is 2 gfmtopt.Indent_Case_Then, type of integer, default is 0 gfmtopt.CaseElseExprInNewline, type of boolean gfmtopt.CaseThenExprInNewline, type of boolean gfmtopt.CaseWhenInSamelineAsCase, type of boolean

Comments

image

  • gfmtopt.WSGap_EndLineComment, type of integer,default is 2
  • gfmtopt.CMT_AlignContinuouslyEndOfLineComment, type of boolean
  • gfmtopt.remove_comment, type of boolean

Create table

image

  • gfmtopt.BEStyle_createtable_leftBEOnNewline, type of boolean
  • gfmtopt.BEStyle_createtable_rightBEOnNewline, type of boolean
  • gfmtopt.Createtable_ListitemInNewLine, type of boolean
  • gfmtopt.Createtable_Fieldlist_Align_option, type of TAlignOption
  • gFmtOpt.Createtable_Fieldlist_Style, type of TAlignStyle
  • gFmtOpt.Createtable_Fieldlist_Comma_option, type of TLinefeedsCommaOption
  • gfmtopt.BEStyle_createtable_leftBEIndentSize, type of integer,default is 0
  • gfmtopt.BEStyle_createtable_rightBEIndentSize, type of integer,default is 0
  • gFmtOpt.Createtable_fields_alignWithCreateKeyword, type of boolean

CTE

image

Declare

image

Default option

image

Execute

image

Expression

image

Identation

image

Insert

image

Line number

image

Line width

image

Parameter

image

Refactor

image

Select

image

Subquery

image

Syntax highlighting

image

Update

image

Whitespace

image

Output Type

image

Preprocessor

image

Format options in prevous version

Here is the previous version of this document: http://www.dpriver.com/ppv3/index.php

Clone this wiki locally