Skip to content

tamingj/q4c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

q4c - queries for collections

Installation

Apache Maven

<dependency>
    <groupId>io.github.tamingj.q4c</groupId>
    <artifactId>q4c</artifactId>
    <version>${tamingj.q4c.version}</version>
</dependency>

Usage

Examples

var parentAccounts = accountClient.getParentAccounts();
var childAccounts = accountClient.getChildAccounts();

selectFrom(parentAccounts)
    .fullOuterJoin(childAccounts)
    .on(Account::id, Account::parentId)
    .where(this::parentHasChild)
    .stream()
    .map(this::createParentChildRelation)
    .toList()
// [...]

Contributors

Contributors

License

Copyright (c) 2024 by the tamingj/q4c maintainers.

Apache License, Version 2.0