Package | Description |
---|---|
gudusoft.gsqlparser |
Provides the class
TGSqlParser necessary to create a SQL Parser and the classes a SQL Parser uses
internally to handle different SQL dialects. |
Modifier and Type | Method and Description |
---|---|
IMetaDatabase |
TGSqlParser.getMetaDatabase()
Deprecated.
As of v2.0.3.1, please use
TGSqlParser.getSqlEnv() instead
a new instance of the class which implements the IMetaDatabase interface |
Modifier and Type | Method and Description |
---|---|
void |
TGSqlParser.setMetaDatabase(IMetaDatabase metaDatabase)
Deprecated.
As of v2.0.3.1, please use
TGSqlParser.getSqlEnv() instead
set an instance of a class which implement the interface: IMetaDatabase .
The parser will call checkColumn(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) method when it needs to know
whether a column is belonged to a table.
The class that implements the interface: IMetaDatabase usually fetch the metadata from the database
by connecting to a database instance.
If the class is not provided, the parser has to guess the relationship between a un-qualified column and table
in the input SQL which may lead to a un-determined result between the column and table. |