General SQL Parser and SQL Pretty Printer Formatter options

Index

Available format options for create table:

gFmtOpt.BEStyle_createtable_leftBEOnNewline Type: boolean Default: false
gFmtOpt.BEStyle_createtable_rightBEOnNewline Type: boolean Default: false
gFmtOpt.Createtable_ListitemInNewLine Type: boolean Default: false
gFmtOpt.Createtable_Fieldlist_Align_option Type: TAlignOption Default: aloLeft
gFmtOpt.DefaultAligntype Type: TAlignStyle Default: asStacked
gFmtOpt.DefaultCommaOption Type: TLinefeedsCommaOption Default: lfAfterComma

Example format options:

NameValue
BEStyle_createtable_leftBEOnNewlinefalse
BEStyle_createtable_rightBEOnNewlinefalse
Createtable_ListitemInNewLinefalse
Createtable_Fieldlist_Style_optionaloLeft

Formatted SQL:

CREATE TABLE dept(deptno NUMBER(2),
                  dname  VARCHAR2(14),
                  loc    VARCHAR2(13)) 


Example format options:

NameValue
BEStyle_createtable_leftBEOnNewline

true

BEStyle_createtable_rightBEOnNewline

true

Createtable_ListitemInNewLine

true

Createtable_Fieldlist_Style_optionaloLeft

Formatted SQL:

CREATE TABLE dept
  (
     deptno NUMBER(2),
     dname  VARCHAR2(14),
     loc    VARCHAR2(13)
  ) 


Example format options:

NameValue
BEStyle_createtable_leftBEOnNewlinetrue
BEStyle_createtable_rightBEOnNewlinetrue
Createtable_ListitemInNewLinetrue
Createtable_Fieldlist_Style_option

aloRight

Formatted SQL:

CREATE TABLE dept
  (
     deptno NUMBER(2),
      dname VARCHAR2(14),
        loc VARCHAR2(13)
  ) 


Example format options:

NameValue
gFmtOpt.DefaultAligntypeasStacked
gFmtOpt.DefaultCommaOptionlfbeforeCommaWithSpace

Formatted SQL:

CREATE TABLE dept(
  deptno  NUMBER(2)
  , dname VARCHAR2(14)
  , loc   VARCHAR2(13)) 


Example format options:

NameValue
gFmtOpt.DefaultAligntypeasWrapped

Formatted SQL:

CREATE TABLE dept(
  deptno NUMBER(2),dname VARCHAR2(14),loc VARCHAR2(13))