[ CCode ( has_construct_function = false , type = "DeeModel*" ) ]
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.
peer |
A Peer instance. |
a new SharedModel |