Skip to content

v2.1.0

Latest
Compare
Choose a tag to compare
@jenetics jenetics released this 15 Nov 22:13
· 1 commit to master since this release
v2.1.0
1389f8e

2.1.0

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.