View Source Ravix.Documents.Session.SaveChangesData (ravix v0.10.0)
Defines all changes that will be executed in a session when calling the save_changes function
Fields
- deferred_commands_count: How many command will be executed
- commands: List of commands to be executed
- entities: Entities in the current session
Summary
Functions
Add the commands that will be deferred to be executed together with the save_changes call
Add the entities that will be deleted
Adds the documents that will be created
Types
@type t() :: %Ravix.Documents.Session.SaveChangesData{ commands: [map()], deferred_commands_count: non_neg_integer(), entities: [map()] }
Functions
Add the commands that will be deferred to be executed together with the save_changes call
Parameters
- save_changes_data: this structure instance
- deferred_commands: Raven commands to be deferred
Returns
Add the entities that will be deleted
Parameters
- save_changes_data: this structure instance
- deleted_entities: Entities that will be deleted
Returns
Adds the documents that will be created
Parameters
- save_changes_data: this structure instance
- documents_by_id: Map with the documents that will be created