Re: [ANN] Khepri 0.2.1 - A tree-like replicated on-disk database library
Frank Muller <[email protected]> Sat, 19 Feb 2022 10:39:47 +0100
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CAFA6GnAJGystzhcA-FxC=NCmGTHz7+oWOXntvwj1sRXBdM4HEA@mail.gmail.com> |
Would it be possible to have a syntactic sugar(parse_transform) for
wildcards:
Ret = khepri:get("/stock/wood/_"
instead of:
PathPattern = [stock, wood, #if_node_matches{regex = any}].
Search all brands offering flipflop:
Ret = khepri:get("/shoe/_/flipflop"
It will greatly simplify the interface IMHO.
Best
/F.
<[email protected]> a écrit :
> On 18/02/2022 17:17, I Gusti Ngurah Oka Prinarjaya wrote:
> > Thank you so much for your awesome clear explanation.
> >
> > >>> Triggers in Khepri could be compared to a combination between
> > >>> `erlang:monitor/2` (which would know about tree nodes) and
> > `erlang:apply/2`.
> > I feel more comfortable now knowing this comparison.
>
> Awesome! I will clarify the documentation then to make sure that,
> despite having the same name & being kind of the same idea, triggers in
> Khepri are not to be confused with triggers in RDBMS.
>
> --
> Jean-Sébastien Pédron
>