Table of Contents

Class FormatterFactory

Namespace
gudusoft.gsqlparser.pp.stmtformatter
Assembly
gudusoft.gsqlparser.dll
public class FormatterFactory
Inheritance
FormatterFactory
Inherited Members

Properties

OutputConfig

public static OutputConfig OutputConfig { get; set; }

Property Value

OutputConfig

Methods

clear(string)

public static void clear(string sessionId)

Parameters

sessionId string

clearAllObject(string)

public static void clearAllObject(string sessionId)

Parameters

sessionId string

createAllStmtsFormatter(GFmtOpt)

public static AllStmtsFormatter createAllStmtsFormatter(GFmtOpt option)

Parameters

option GFmtOpt

Returns

AllStmtsFormatter

createAlterTableStatement(GFmtOpt)

public static AlterTableStmtFormatter createAlterTableStatement(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

AlterTableStmtFormatter

createCompactModeStmtFormatter(GFmtOpt)

public static CompactModeStmtFormatter createCompactModeStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

CompactModeStmtFormatter

createCreateTableStmtFormatter(GFmtOpt)

public static CreateTableStmtFormatter createCreateTableStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

CreateTableStmtFormatter

createCreateViewStmtFormatter(GFmtOpt)

public static CreateViewStmtFormatter createCreateViewStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

CreateViewStmtFormatter

createDeclareStmtFormatter(GFmtOpt)

public static DeclareStmtFormatter createDeclareStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

DeclareStmtFormatter

createDeleteStmtFormatter(GFmtOpt)

public static DeleteStmtFormatter createDeleteStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

DeleteStmtFormatter

createExecuteStmtFormatter(GFmtOpt)

public static ExecuteStmtFormatter createExecuteStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

ExecuteStmtFormatter

createFormatter<E>(GFmtOpt, Type, IFormatterBuilderCreator)

public static E createFormatter<E>(GFmtOpt opt, Type clazz, FormatterFactory.IFormatterBuilderCreator creater) where E : AbstractStmtFormatter

Parameters

opt GFmtOpt
clazz Type
creater FormatterFactory.IFormatterBuilderCreator

Returns

E

Type Parameters

E

createGoStmtFormatter(GFmtOpt)

public static GoStmtFormatter createGoStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

GoStmtFormatter

createIfStmtFormatter(GFmtOpt)

public static IfStmtFormatter createIfStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

IfStmtFormatter

createInsertStmtFormatter(GFmtOpt)

public static InsertStmtFormatter createInsertStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

InsertStmtFormatter

createPlsqlIfStmtFormatter(GFmtOpt)

public static PlsqlIfStmtFormatter createPlsqlIfStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

PlsqlIfStmtFormatter

createPlsqlStmtFormatter(GFmtOpt)

public static PlsqlStmtFormatter createPlsqlStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

PlsqlStmtFormatter

createReturnStmtFormatter(GFmtOpt)

public static ReturnStmtFormatter createReturnStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

ReturnStmtFormatter

createSelectStmtFormatter(GFmtOpt)

create select statment formatter

public static SelectStmtFormatter createSelectStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

options

Returns

SelectStmtFormatter

instance

createSetStmtFormatter(GFmtOpt)

public static SetStmtFormatter createSetStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

SetStmtFormatter

createUpdateStmtFormatter(GFmtOpt)

public static UpdateStmtFormatter createUpdateStmtFormatter(GFmtOpt opt)

Parameters

opt GFmtOpt

Returns

UpdateStmtFormatter

isNotNeedFormat(TCustomSqlStatement)

public static bool isNotNeedFormat(TCustomSqlStatement sql)

Parameters

sql TCustomSqlStatement

Returns

bool

isNotNeedFormat(TSourceToken)

public static bool isNotNeedFormat(TSourceToken t)

Parameters

t TSourceToken

Returns

bool

pp(TGSqlParser, GFmtOpt)

public static string pp(TGSqlParser parser, GFmtOpt option)

Parameters

parser TGSqlParser
option GFmtOpt

Returns

string

processBlockStmt(GFmtOpt, TMssqlBlock, TSourceToken)

public static void processBlockStmt(GFmtOpt opt, TMssqlBlock stmt, TSourceToken ifToken)

Parameters

opt GFmtOpt
stmt TMssqlBlock
ifToken TSourceToken

processStatement(GFmtOpt, TCustomSqlStatement)

public static void processStatement(GFmtOpt option, TCustomSqlStatement sql)

Parameters

option GFmtOpt
sql TCustomSqlStatement