A very thin wrapper that stores connection and table name, so you don’t have have to specify dbconn and table over and over again.
For example:
foo_loop = doloop.DoLoop(dbconn, 'foo_loop')
foo_ids = foo_loop.get(100)
for foo_id in foo_ids:
# update foo_id
...
foo_loop.did(foo_ids)
Wrap a task loop table in an object
| Parameters: |
|
|---|
You can read (but not change) the table name from self.table
Remove IDs from this task loop.
See remove() for details.
Get some IDs of things to update and lock them.
See get() for details.
Mark IDs as updated and unlock them.
See did() for details.
Unlock IDs without marking them updated.
See unlock() for details.