Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

parse sql to objects

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I need to analyze sql statements - mostly DML statements ( Create table, Alter table, drop constrainst etc).

is there jar that parse the sqls string statements into java Objects?

I found the Zql jar - but it doesnt support Alter statements..

thanks.
 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
take a look at, http://sqljep.sourceforge.net/

If Zql is open source, You can also think about adding that future and contributing back.

BTW, Whats is the application(usage) of parsing SQL to objects.


 
sara rod
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi!

thanks, I will check this.

I have to txt files conating DML statements and i need to compare them - and to check which statements is in both files.
the problem is, that they dont have to have the same string exactly matching (order can be different, spaces etc.)
so i thought the easy will be to parse them into objects - and make the equal checking on the objects.
 
sara rod
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

the SQL jep - seems more like a tool to work on results of sql expressions, than to analyze the statement itself.

any other ideas?
 
    Bookmark Topic Watch Topic
  • New Topic