Skip to content

Change return type of ILiteRepository.Insert to match ILiteDatabase.Insert#2260

Merged
mbdavid merged 1 commit intolitedb-org:masterfrom
InvisiblePhil:insert-return-type
Mar 9, 2023
Merged

Change return type of ILiteRepository.Insert to match ILiteDatabase.Insert#2260
mbdavid merged 1 commit intolitedb-org:masterfrom
InvisiblePhil:insert-return-type

Conversation

@InvisiblePhil
Copy link

The documentation of ILiteRepository.Insert implied it returns the ID of the insert, but it returned void

Changed to make this API consistent

Copy link

@mahop-net mahop-net left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary should be changed accordingly.

If not accepted summary should also be changed... :-)

@InvisiblePhil
Copy link
Author

Summary should be changed accordingly.

If not accepted summary should also be changed... :-)

The summary as-is notes the method returns the ID - so what change is needed if the PR is accepted?

@mahop-net
Copy link

mahop-net commented Jan 3, 2023

OK, it really returns the ID - sorry I thought BsonValue holds the complete document, but it is only the ID...

@mbdavid mbdavid merged commit b1e8260 into litedb-org:master Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants