I have created a HyperSQL Database. I was just wondering whether I could run multiple transactions on a single connection. I didn\'t want to spawn a new connection for each
Absolutely no. every "transaction" must have begin, complete or rollback. Of course you can separate a single transaction to some parts on a single line of original transaction. no more no less.
You should be able to run multiple transactions over a single connection they will just have to be run one at a time so you'll have to queue or stack them and block as the transaction happens. You generally will not be able to run queries in parallel over a single connection.