s.t.p.PeopleBroker(AccessBroker) : class documentation
|Method||__init__||Constructs an instance of me, optionally specifying parameters for an SQLAlchemy engine object that serves this instance only.|
Inherited from AccessBroker:
|Instance Variable||q||A property-generated reference to a threaded task queue that is dedicated to my database connection.|
|Instance Variable||connection||The current SQLAlchemy connection object, if any yet exists. Generated by
|Class Method||setup||Constructs a global queue for all instances of me, returning a deferred that fires with it.|
|Method||callWhenRunning||Calls the f-args-kw combo when the broker is running and ready for transactions.|
|Method||table||Instantiates a new table object, creating it in the transaction thread as needed.|
|Method||shutdown||Shuts down my database transaction functionality and threaded task
queue, returning a
|Method||s||Polymorphic method for working with
|Method||select||Just returns an
|Method||selex||Supply columns as arguments and this method generates a select on the columns, yielding a placeholder object with the same attributes as the select object itself.|
|Method||sql||Executes raw SQL as a transaction, in my thread with my current connection, with any rows of the result returned as a list.|
|Method||deferToQueue||Dispatches callable(*args, **kw) as a task via the like-named
method of my asynchronous queue, returning a
Constructs an instance of me, optionally specifying parameters for an SQLAlchemy engine object that serves this instance only.
This method runs before the first transaction to start my synchronous task queue. Override it to get whatever pre-transaction stuff you have run in the main loop before a database engine/connection is created.
This method automatically runs as the first transaction after completion
Override it to define table contents or whatever else you want as a
first transaction that immediately follows your pre-transaction stuff.
You don't need to decorate the method with
it doesn't break anything if you do.