documentation:release:4.4:common:polydb_cursor

Available versions of this document: latest release, release 4.13, release 4.12, release 4.11, release 4.10, release 4.9, release 4.8, release 4.7, release 4.6, release 4.5, release 4.4, release 4.3, release 4.2, release 4.1, release 4.0, release 3.6, release 3.5, nightly master

Reference documentation for older polymake versions: release 3.4, release 3.3, release 3.2

BigObject PolyDB::Cursor

from application common

Database cursor over the results of a query operation. Objects can be retrieved in a loop, fetching one at a time, or all at once.

Example:

Process results of a query in a loop

 > for (my $cursor = $collection->find({}); $cursor->has_next; ) {
 >   my $object = $cursor->next;
 >   do_something($object);
 > }

Retrieve all objects at once

 > @with_100_vertices = $collection->find({ N_VERTICES => 100 })->all;

  • documentation/release/4.4/common/polydb_cursor.txt
  • Last modified: 2021/05/18 09:05
  • by 127.0.0.1