Although knex doesn't exactly look like JDBC or JPA, it seems like a good SQL abstraction on top of multiple databases.
Knex.js is a battery-powered SQL query builder for Postgres, MSSQL, MySQL,> MariaDB, SQLite3, Oracle, and Amazon Redshift, designed for flexibility, portability, and usability.
I really haven't used this, but given the desert landscape, this seems like a good option.
Jens source share