Skip to content

Commit

Permalink
Added limit(count) and page(offset) to select added
Browse files Browse the repository at this point in the history
`.page(page,size)` to `Cursor` instances which returns reduced size
cursor.
  • Loading branch information
anywhichway committed Jan 21, 2017
1 parent 6cd62a8 commit edf56bf
Show file tree
Hide file tree
Showing 7 changed files with 683 additions and 561 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -296,6 +296,8 @@ A `projection` specification takes the form `{<desiredPropertyName>: {<classVari
`.sample(confidence, range)` results in a fixed cursor with a `confidence` that the included records are representative of the entire result set at +/- the `range`.
`.limit(number).page(offset)` results in a fixed cursor with the N records from the page `offset` with each page having been N records. Calling `limit` without page is the same as calling `.first`.
The `from` clause is an object, the properties of which are variable names to be used in the `where` clause. The values of the properties are classes.
See [Patterns](#patterns) above for a general description of `<pattern>` in the `where` clause.
Expand Down Expand Up @@ -533,7 +535,7 @@ The cross-product approach has two values:
A side effect of the above is that it is not currently possible to know the actual number of rows in a cursor without doing additional computation to determine which rows are excluded as a result of join restrictions.
An exception to the cross-product based cursor, is a cursor that results from down selection. The select clauses `first`, `random`, `sample`, result in the return of cursors with fixed pre-computed rows. However, the calling interface is identical. In fact, the same class is used to implement both types of cursor.
An exception to the cross-product based cursor, is a cursor that results from down selection. The select clauses `first`, `random`, `sample`, `limit` result in the return of cursors with fixed pre-computed rows. However, the calling interface is identical. In fact, the same class is used to implement both types of cursor.
## Performance
Expand Down Expand Up @@ -576,6 +578,8 @@ Currently updates to object properties are indepedently saved to the database au
## Updates (reverse chronological order)
2017-01-21 v0.2.9 Added `limit(count)` and `page(offset)` to `select` added `.page(page,size)` to `Cursor` instances which returns reduced size cursor.
2017-01-17 v0.2.8 Fixed Issue 15, changes to intersection in v2.6 had been copied from a non-strict codebase and broke during babelify with no errors during compile.
2017-01-11 v0.2.7 Fixed Issue 13 where updates were being saved to the Object index when a constructor could not be found for the classes of objects being updated.
Expand Down
34 changes: 17 additions & 17 deletions browser/reasondb.js

Large diffs are not rendered by default.

0 comments on commit edf56bf

Please sign in to comment.