On 10/15/12 4:03 AM, Dinesh Bajaj wrote:
Hi,
I am struggling to emit DDL of a Derby database programmatically. So
far, I was using dblook tool at the command prompt to generate the
DDL. Now, I need to do it through code, and I can't find a method in
the dblook class that I could invoke to accomplish this task.
Hi Dinesh,
You can invoke dblook.main with your arguments. Something like this
should work:
dblook.main( new String[] { "-d", "jdbc:derby:db", "-o",
"dblook.out" } );
Hope this helps,
-Rick
Sorry, if this question sounds silly.
Thanks,
Dinesh