h2-database - Connect and query stocks application H2 database
Guide for connecting to and querying the H2 database used by the stocks application
Tags
Updated: 2026-05-09Typical Inputs
What this skill does
- connect to H2 database
- run SQL queries
- inspect database tables
- view database schema
- list all assets
- query transactions
- query dividends
- verify records
- reset test data
Inputs
- JDBC URL
- database path
- username
- password
- H2 JAR file path
Outputs
- SQL query results
- database connection status
- data cleanup status
Requirements
- running application
- Gradle cache dependency
- H2 JAR file
