4.0.0-beta.2
Pre-release
Pre-release
This release drafts a new beta version of QDB4.
This package is fully usable, but it lacks just a few minor things which I'll be implementing in the next few releases of v4.
In this release, there have been a few fixes regarding documentation and bugs. Additionally, I added tests for the Transaction wrapper class and also implemented the database backup executor.
Lastly, I changed the Select
method and implemented the Selection
class;
- Select (basically filter out) rows in the database using
<Connection>.Select(Fn<Entry, Idx>: Function) -> Selection
. - From there, there's an in-memory copy of the rows you selected. Use the
Sort
,Filter
andLimit
methods to utilise the Selection.<Selection>.Sort(Fn<av, bv, ak, bk>: Function) -> Selection
<Selection>.Filter(Fn<Val, Key>: Function) -> Selection
<Selection>.Limit(Begin: Number, End?: Number) -> Selection
- When you manipulated the Selection, you can export it to an object or array:
<Selection>.AsObject()
or<Selection>.Values()
as a value array.