This is a small application that will run in the background and stores all the keystrokes events in a database.
- Figure out:
- How to capture key stroke events.
- What kind of key stroke events are there?
- Which ones to store?
- Print the key stroke events.
- Store the key stroke events in a text file.
- Run the application in the background
- Integrate postgres DB in Rust
- Write to the DB:
- batch / single?
- when to write?
- every time a keystroke event is pressed (definite no)
- frequency dependent on number of keystrokes or time elapsed? (siding towards number of keystrokes available)
- Benchmark DB calls + DB memory usage based on different windows/styles/optimizations
The goal is to just explore the DB side in Rust, and try optimizing myself.