sql-streams
sql-streams copied to clipboard
Painless low level jdbc abstraction using the java 8 stream api.
Some JDBC providers, e.g. H2, don't allow `INSERT` with `executeQuery`: ``` Caused by: org.h2.jdbc.JdbcSQLException: Method is only allowed for a query. Use execute or executeUpdate instead of executeQuery; SQL statement:...
- [x] Javadoc all the things - [x] Getting started - [ ] Explain how mapping works - [ ] Explain how datasources work (setup) - [ ] Explain how...
Keep track of all resources that get opened by the library to make it easier on the user to close them all. That'll reduce the amount of try with resources...
Parse the query looking for `:([a-z0-9_]+)\b` not in quotes, replace them with `?` and build a `Map`. Then have ``` java public P set(String name, T value) { map.getOrDefault(param, Collections.emptyList())...