Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » SQL parser standalone?
SQL parser standalone? [message #11392] Fri, 21 April 2006 16:22 Go to next message
Michael McMaster is currently offline Michael McMasterFriend
Messages: 2
Registered: July 2009
Junior Member
Greetings-

I've scanned through the project pages for the SQL parser, and haven't
been able to find an answer... but is the DTP SQL parser something that
can be included in a non-Eclipse application?

I to created a simple app to experiment with it, and it seems to handle
the simple "select * from table" statements, but with anything
semi-complicated, I ran into needing some classes from the Eclipse core
runtime. Am I trying to do something this isn't designed for?

Thanks
-Michael
Re: SQL parser standalone? [message #11506 is a reply to message #11392] Tue, 25 April 2006 01:02 Go to previous message
Brian Payton is currently offline Brian PaytonFriend
Messages: 154
Registered: July 2009
Senior Member
Michael,

We haven't tried to run this version of the parser in stand-alone mode.
However, it should be do-able, since the SQL parser has few dependencies
on other plugins. You will need the EMF org.eclipse.emf.ecore plugin,
since the parser actions generate an EMF model, but EMF itself can run
outside Eclipse. The Eclipse runtime dependency probably come from our
dynamic parser registration, lookup, and load mechanism. Your app
probably wouldn't need that, so you could try removing that code and see
if the dependency goes away.

Brian
SQL Tools Development, IBM

Michael McMaster wrote:
> Greetings-
>
> I've scanned through the project pages for the SQL parser, and haven't
> been able to find an answer... but is the DTP SQL parser something
> that can be included in a non-Eclipse application?
>
> I to created a simple app to experiment with it, and it seems to
> handle the simple "select * from table" statements, but with anything
> semi-complicated, I ran into needing some classes from the Eclipse
> core runtime. Am I trying to do something this isn't designed for?
>
> Thanks
> -Michael
>
Re: SQL parser standalone? [message #573032 is a reply to message #11392] Tue, 25 April 2006 01:02 Go to previous message
Brian Payton is currently offline Brian PaytonFriend
Messages: 154
Registered: July 2009
Senior Member
Michael,

We haven't tried to run this version of the parser in stand-alone mode.
However, it should be do-able, since the SQL parser has few dependencies
on other plugins. You will need the EMF org.eclipse.emf.ecore plugin,
since the parser actions generate an EMF model, but EMF itself can run
outside Eclipse. The Eclipse runtime dependency probably come from our
dynamic parser registration, lookup, and load mechanism. Your app
probably wouldn't need that, so you could try removing that code and see
if the dependency goes away.

Brian
SQL Tools Development, IBM

Michael McMaster wrote:
> Greetings-
>
> I've scanned through the project pages for the SQL parser, and haven't
> been able to find an answer... but is the DTP SQL parser something
> that can be included in a non-Eclipse application?
>
> I to created a simple app to experiment with it, and it seems to
> handle the simple "select * from table" statements, but with anything
> semi-complicated, I ran into needing some classes from the Eclipse
> core runtime. Am I trying to do something this isn't designed for?
>
> Thanks
> -Michael
>
Previous Topic:SQLExceptionDialog
Next Topic:SQLResultRunnable for UserDefinedFunction (UDF)
Goto Forum:
  


Current Time: Fri Apr 19 22:48:20 GMT 2024

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

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

Back to the top