You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of StorageObj is not efficient. In Python 3, we may change this to only have StorageDict as IStorage object, and a StorageObj would only be an element of the StorageDict.
classMailByUser(StorageDict[str,str]):
passmbu=MailByUser('test.customers')
mbu['cugni'] ='[email protected]'classClient(StorageObj):
user_id: KEY(str)
mail: strcollection_name='test.customers'# keyspace and table name# if collection_name is not set the table will be based on the name of the classprint(Client.repo['cugni']) # prints Client("cugni","[email protected]")# orprint(Client.find('cugni'))
pol=Client()
pol.user_id='pol'pol.mail='[email protected]'pol.make_persistent() # if type KEY is not set in Client a key can be specified here as a parameter# orClient.repo['pol'] =pol
The text was updated successfully, but these errors were encountered:
The current implementation of StorageObj is not efficient. In Python 3, we may change this to only have StorageDict as IStorage object, and a StorageObj would only be an element of the StorageDict.
The text was updated successfully, but these errors were encountered: