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
Methods
clear(string)
public static void clear(string sessionId)
Parameters
sessionIdstring
clearAllObject(string)
public static void clearAllObject(string sessionId)
Parameters
sessionIdstring
createAllStmtsFormatter(GFmtOpt)
public static AllStmtsFormatter createAllStmtsFormatter(GFmtOpt option)
Parameters
optionGFmtOpt
Returns
createAlterTableStatement(GFmtOpt)
public static AlterTableStmtFormatter createAlterTableStatement(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createCompactModeStmtFormatter(GFmtOpt)
public static CompactModeStmtFormatter createCompactModeStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createCreateTableStmtFormatter(GFmtOpt)
public static CreateTableStmtFormatter createCreateTableStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createCreateViewStmtFormatter(GFmtOpt)
public static CreateViewStmtFormatter createCreateViewStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createDeclareStmtFormatter(GFmtOpt)
public static DeclareStmtFormatter createDeclareStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createDeleteStmtFormatter(GFmtOpt)
public static DeleteStmtFormatter createDeleteStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createExecuteStmtFormatter(GFmtOpt)
public static ExecuteStmtFormatter createExecuteStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createFormatter<E>(GFmtOpt, Type, IFormatterBuilderCreator)
public static E createFormatter<E>(GFmtOpt opt, Type clazz, FormatterFactory.IFormatterBuilderCreator creater) where E : AbstractStmtFormatter
Parameters
optGFmtOptclazzTypecreaterFormatterFactory.IFormatterBuilderCreator
Returns
- E
Type Parameters
E
createGoStmtFormatter(GFmtOpt)
public static GoStmtFormatter createGoStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createIfStmtFormatter(GFmtOpt)
public static IfStmtFormatter createIfStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createInsertStmtFormatter(GFmtOpt)
public static InsertStmtFormatter createInsertStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createPlsqlIfStmtFormatter(GFmtOpt)
public static PlsqlIfStmtFormatter createPlsqlIfStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createPlsqlStmtFormatter(GFmtOpt)
public static PlsqlStmtFormatter createPlsqlStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createReturnStmtFormatter(GFmtOpt)
public static ReturnStmtFormatter createReturnStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createSelectStmtFormatter(GFmtOpt)
create select statment formatter
public static SelectStmtFormatter createSelectStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOptoptions
Returns
- SelectStmtFormatter
instance
createSetStmtFormatter(GFmtOpt)
public static SetStmtFormatter createSetStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
createUpdateStmtFormatter(GFmtOpt)
public static UpdateStmtFormatter createUpdateStmtFormatter(GFmtOpt opt)
Parameters
optGFmtOpt
Returns
isNotNeedFormat(TCustomSqlStatement)
public static bool isNotNeedFormat(TCustomSqlStatement sql)
Parameters
Returns
isNotNeedFormat(TSourceToken)
public static bool isNotNeedFormat(TSourceToken t)
Parameters
Returns
pp(TGSqlParser, GFmtOpt)
public static string pp(TGSqlParser parser, GFmtOpt option)
Parameters
parserTGSqlParseroptionGFmtOpt
Returns
processBlockStmt(GFmtOpt, TMssqlBlock, TSourceToken)
public static void processBlockStmt(GFmtOpt opt, TMssqlBlock stmt, TSourceToken ifToken)
Parameters
optGFmtOptstmtTMssqlBlockifTokenTSourceToken
processStatement(GFmtOpt, TCustomSqlStatement)
public static void processStatement(GFmtOpt option, TCustomSqlStatement sql)
Parameters
optionGFmtOptsqlTCustomSqlStatement