Class MsCreateAssembly
java.lang.Object
org.pgcodekeeper.core.database.base.parser.statement.ParserAbstract<MsDatabase>
org.pgcodekeeper.core.database.ms.parser.statement.MsParserAbstract
org.pgcodekeeper.core.database.ms.parser.statement.MsCreateAssembly
Parser for Microsoft SQL CREATE ASSEMBLY statements.
Handles assembly creation including binary data, owner settings, and permission levels
with proper formatting of binary hexadecimal data.
-
Constructor Summary
ConstructorsConstructorDescriptionMsCreateAssembly(TSQLParser.Create_assemblyContext ctx, MsDatabase db, ISettings settings) Creates a parser for Microsoft SQL CREATE ASSEMBLY statements. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatBinary(String hex) Formats binary hexadecimal data for assembly storage.voidParses a database object from the current context.Methods inherited from class org.pgcodekeeper.core.database.base.parser.statement.ParserAbstract
getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Constructor Details
-
MsCreateAssembly
Creates a parser for Microsoft SQL CREATE ASSEMBLY statements.- Parameters:
ctx- the ANTLR parse tree context for the CREATE ASSEMBLY statementdb- the Microsoft SQL database schema being processedsettings- parsing configuration settings
-
-
Method Details
-
parseObject
public void parseObject()Description copied from class:ParserAbstractParses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.- Specified by:
parseObjectin classParserAbstract<MsDatabase>
-
formatBinary
Formats binary hexadecimal data for assembly storage. Removes newlines from input and reformats with proper line breaks for readability.- Parameters:
hex- the hexadecimal string to format- Returns:
- formatted hexadecimal string with proper line breaks
-