FeraeLabs / skunk

A person-in-the-middle proxy
MIT License
0 stars 0 forks source link

Storing flows #5

Closed jgraef closed 3 months ago

jgraef commented 5 months ago

We might want to store flows for later inspection. My idea was to use sqlx with sqlite for this. sqlite allows us to write complex queries that are optimally executed and to store everything in one file. sqlx is nice because it verifies SQL queries at compile-time.

jgraef commented 3 months ago

get/insert for flows/messages is implemented. We might want to add code for artifacts later.

This currently uses sqlx's built-in migration feature, but we might want to roll our own.

I will close this for now.