saurabh0719 / elara

Elara DB is an easy to use, lightweight persistent key-value store that can also be used as a fast in-memory cache. Manipulate data structures in-memory, encrypt database files and export data. :dart:

Home Page:https://pypi.org/project/elara/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Atomic file read/writes

saurabh0719 opened this issue · comments

Description :

  • Ideally, files writes and reads should be fully atomic to avoid file corruption
  • The Safer library is handy for this usecase.
    • This library essentially directs all file writes to a memory stream (or temp file) before writing into the actual file to ensure atomicity.

Comment any other suggestions or alternatives.

Interested in doing this.

Great. Check out the contributing guidelines before you proceed @AdityaKotwal100