Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#493 Connect by using an existing java.sql.Connection instance

General
open
nobody
None
5
2014-04-30
2014-04-30
Roman
No

I'd like to
- debug in Eclipse some application which uses a java.sql.Connection
- at a breakpoint open the Debug/Display view
- type the following: net.sourceforge.squirrel_sql.client.Application.load(myConnection);
- Execute the selected Text

This should start SquirrelSQL with my connection from the breakpoint.

Rationale: that way, I can query and browse inside a Transaction which has not been committed yet (very useful for unit tests which always rollback at the end)

Caveat: there are currently a few static initializations in Squirrel, which may cause problems when starting squirrel twice with the above approach. But at least it is possible to start Squirrel that way, and it does display the uncommitted data (I have verified that).

Discussion