Interface IDatabaseProvider
- All Known Implementing Classes:
ChDatabaseProvider,MsDatabaseProvider,PgDatabaseProvider
public interface IDatabaseProvider
Interface for DBMS
-
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.v4.runtime.ANTLRErrorStrategyorg.antlr.v4.runtime.LexergetLexer(org.antlr.v4.runtime.CharStream stream) org.antlr.v4.runtime.ParsergetParser(org.antlr.v4.runtime.CommonTokenStream stream) booleanisSystemSchema(String schema) Checks if a schema is a system schema for the given database type.
-
Method Details
-
getDatabaseType
String getDatabaseType()- Returns:
- name of DBMS
-
getDefaultPort
String getDefaultPort()- Returns:
- default port for DBMS
-
getDriverName
String getDriverName()- Returns:
- full jdbc driver name for DBMS
-
getLexer
org.antlr.v4.runtime.Lexer getLexer(org.antlr.v4.runtime.CharStream stream) - Parameters:
stream- - char stream- Returns:
- antlr lexer object for DBMS
-
getParser
org.antlr.v4.runtime.Parser getParser(org.antlr.v4.runtime.CommonTokenStream stream) - Parameters:
stream- - token stream from lexer object for DBMS- Returns:
- antlr parser for DBMS
-
getErrorHandler
org.antlr.v4.runtime.ANTLRErrorStrategy getErrorHandler()- Returns:
- error strategy for parser
-
isSystemSchema
Checks if a schema is a system schema for the given database type.- Parameters:
schema- the schema name to check- Returns:
- true if the schema is a system schema, false otherwise
-