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
Insert an active model and get back the last insert id. Its type matches the model's primary key type, so it could be a tuple if the model has a composite primary key.
Looking at the documentation about mocking execution results I understand that I need to append MockExecResults into the MockDatabase. However, I could not find any way to achieve this with composite ids.
Looking at the implementation I don't think it's supported. Please let me know if I am missing something.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, new user here. I am trying to test inserting row(s) into a table that has composite id.
From the documentation:
Looking at the documentation about mocking execution results I understand that I need to append
MockExecResult
s into theMockDatabase
. However, I could not find any way to achieve this with composite ids.Looking at the implementation I don't think it's supported. Please let me know if I am missing something.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions