Improvements
- #23: Implementation of
Stored
class.
// Reading 'Link' objects from db.
final List<Stored<Long, Link>> links = select
.as(LINK_PARSER.stored("id").list(), conn);
// Printing the result + its DB ids.
links.forEach(System.out::println);
// > Stored[id=1, value=Link[http://jenetics.io, text=null, type=null]]
// > Stored[id=2, value=Link[http://jenetics.io, text=Jenetics, type=web]]
// > Stored[id=3, value=Link[https://duckduckgo.com, text=DuckDuckGo, type=search]]
- #49: Implement
PreparedQuery
class.
final var query = INSERT_LINK.prepareQuery(conn);
final var batch = Batch.of(links, LINK_DCTOR);
query.execute(batch);
Bug
- #23: Remove wrong
null
check in Param
factory method.