SharedModel.for_peer
Description:
[ CCode ( has_construct_function = false , type = "DeeModel*" ) ]
public SharedModel.for_peer (owned Peer peer)
public SharedModel.for_peer (owned Peer peer)
Create a new empty shared model without any column schema associated.
The column schema will be set in one of two ways: firstly you may set it manually with set_schema or secondly it will be set once the first rows are exchanged with a peer model.
A SharedModel with a schema manually set has to be created before creating more
SharedModel with the same name
.
A shared model created with this constructor will store row data in a suitably picked memory backed model.
Parameters:
peer |
A Peer instance. |
Returns:
a new SharedModel |