Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » How to get (db2, oracle etc.) dialect SQL Query Parser
How to get (db2, oracle etc.) dialect SQL Query Parser [message #553336] Tue, 17 August 2010 08:18
Woo  is currently offline Woo Friend
Messages: 3
Registered: August 2010
Junior Member

In the SQL query Parser guide the sample code states:

2.2 Getting a parser manager for a specific vendor
The recommended way is to instantiate a parser based on the database vendor information so as to handle vendor specific variations of SQL. The following code snippet shows how to create the parser based on the vendor information
// TODO initialize the variable db with the
// org.eclipse.wst.rdb.internal.models.sql.schema.Database intance obtained from
// the database connection
// Database db;
// TODO get the vendorname and version after the variable is initialized
// String dbName = db.getVendor();
// String dbVersion = db.getVersion();
// get the best matching parser manager depending on what parser extension are plugged in
SQLQueryParserManager parserManager = SQLQueryParserManagerProvider
.getInstance().getParserManager(dbName, dbVersion);

I want to know how to create or get 'Database db;'

or How do I find dialect parser plugins?

sorry to weak english.
Previous Topic:Any way to implement DDL parser
Next Topic:How to get (db2, oracle etc.) dialect SQL Query Parser
Goto Forum:

Current Time: Tue Aug 03 21:58:28 GMT 2021

Powered by FUDForum. Page generated in 0.01672 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top