ServiceRemoteAttachmentFunction¶
- class dsviper.ServiceRemoteAttachmentFunction¶
Bases:
objectA resolved attachment callable, reached by attribute: service.attachment_pools.<pool>.<name>.
Call it with an AttachmentMutating first, then the parameters the prototype declares - one argument more than function().prototype() reports, and anything else as the first raises TypeError.
The function runs on the service, and the state stays here: the service drives it back over the connection while the call runs, so what it holds is read and written in place. That state is a context you own - nothing is persisted unless you carry it into a database yourself.
The result is a native leaf, or a wrapped Value for a container or a blob. Calling once the connection is closed raises ViperError.
Note: Not directly instantiable.
- function() ServiceRemoteAttachmentFunctionPoolFunction¶
Return the declaration of the function being called.
- pool() ServiceRemoteAttachmentFunctionPool¶
Return the pool the function belongs to.
- service() ServiceRemote¶
Return the ServiceRemote the call goes through.