Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default behavior of Put #21

Open
pakipaki2000 opened this issue Apr 13, 2019 · 1 comment
Open

Default behavior of Put #21

pakipaki2000 opened this issue Apr 13, 2019 · 1 comment

Comments

@pakipaki2000
Copy link

Hi,

I'm sorry, I've read your whole doc but I don't understand the exact behavior regarding Updates.
When I update data using:
lmdb_zero::put

Will it insert them by default in double or just replace them?

Thanks again

@AltSysrq
Copy link
Owner

Based on the docs, I would expect that it creates or overwrites the key if the database was not created with duplicates enabled, and it creates or appends to the key if the database was created with duplicates enabled, based on the presence of the two flags that disable those behaviours.

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

No branches or pull requests

2 participants