Skip to content

Commit 53a96e2

Browse files
authored
Merge pull request #104 from poissoncorp/RDBC-471-5.0
RDBC-471 Updated v5.0 to v5.2 changes
2 parents 1484398 + a5e2df1 commit 53a96e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyravendb/store/document_session.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .session_counters import DocumentCounters
1212
from typing import Dict, List
1313
from collections import MutableSet
14+
from itertools import chain
1415

1516

1617
class _SaveChangesData(object):
@@ -115,6 +116,16 @@ def clear(self):
115116
self._hashable_items.clear()
116117
self._unhashable_items.clear()
117118

119+
def items(self):
120+
return list(
121+
chain(
122+
map(lambda item: (item[0], item[1]), self._hashable_items.items()),
123+
map(
124+
lambda item: (item[0].ref, item[1]), self._unhashable_items.items()
125+
),
126+
)
127+
)
128+
118129

119130
class _DeletedEntitiesHolder(MutableSet):
120131
def __init__(self, items=None):

0 commit comments

Comments
 (0)