Part of sasync.parray View In Hierarchy
I do the hands-on work of (potentially) non-blocking database access for the persistence of array elements within a uniquely-identified group.
My methods return Twisted deferred instances to the results of their database accesses rather than forcing the client code to block while the database access is being completed.| Method | __init__ | Instantiates me for a three-dimensional array of elements within a |
| Method | startup | You can run my transaction methods when the deferred returned from |
| Method | load | Element load transaction |
| Method | update | Element overwrite (entry update) transaction |
| Method | insert | Element add (entry insert) transaction |
| Method | delete | Element delete transaction |
| Method | clear | Transaction to clear all elements (Use with care!) |
Inherited from AccessBroker:
| Class Method | engine | Sets default connection parameters for all instances of me. |
| Method | _getDeferredTracker | Returns an instance of misc.DeferredTracker
that is dedicated to the
|
| Method | _getQueue | Returns a threaded task queue that is dedicated to my database |
| Method | connect | Generates and returns a singleton connection object. |
| Method | _sessionClose | Replacement close method for session objects.
|
| Method | getSession | Get a commitable session object |
| Method | table | Instantiates a new table object, creating it in the transaction thread |
| Method | userStartup | If this method is defined and startup
is not overridden in your
|
| Method | first | This method automatically runs as the first transaction after |
| Method | shutdown | Shuts down my database transaction functionality and threaded task |
| Method | s | Polymorphic method for working with select instances within
a cached
|
| Method | queryToList | Executes my current select object with the bind parameters supplied as |
| Method | deferToQueue | Dispatches callable(*args, **kw) as a task via the like-named method |