sasync.parray.PersistentArray(object)
class documentation
Part of sasync.parray
(View In Hierarchy)
I am a three-dimensional array of Python objects, addressable by any
three-way combination of hashable Python objects. You can use me as a
two-dimensional array by simply using some constant, e.g.,
None
when supplying an address for my third dimension.
Method | __init__ | No summary |
Method | write | Performs a database write transaction, returning a deferred to its completion. |
Method | get | Retrieves an element (x,y,z) from the database. |
Method | set | Persists the supplied value of element (x,y,z) to the database, inserting or updating a row as appropriate. |
Method | delete | Deletes the database row for element (x,y,z). |
Method | clear | Deletes the entire group of database rows for all of my elements. Use with care! |
Constructor, with a URL and any engine-specifying keywords supplied if a particular engine is to be used for this instance. The following additional keyword is particular to this constructor:
Performs a database write transaction, returning a deferred to its completion.