Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inspect or Visualize in memory database created using sqlite jdbc during debug

I am creating a temporary sqlite jdbc database structure in memory. Somehitng like this,

Connection connection = DriverManager.getConnection("jdbc:sqlite::memory:");

However, it would be really nice to be able to see/visualize this database while debugging. I have created a complete set of database and can retrieve this data using ResultSet and Statement.executeQuery("Query");

Any ideas, how can it be achieved in Netbeans debugger.

like image 972
Indigo Avatar asked Oct 27 '25 05:10

Indigo


1 Answers

In-memory databases cannot be accessed from another connection.

For debugging, create a database in a file.

like image 84
CL. Avatar answered Oct 28 '25 19:10

CL.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!