WIP: Replace Posgresql with a simpiler embedded database
Created by: ironhaven
I saw you post on r/rust and reading the code made me think about how your sql queries and schema where basicly (userid, program_name) -> program_code
. That is a great match for a key value database. A bonus of switch using cool libraris, not needing to worry about hosting a database and small speed/scaleability boost.
Changes
- Program will read from
DATABASE_PATH
instead ofDATABASE_URL
- All the diesel code has been deleted to highlight the diffrence in code size
- Database format is changed so a you need to drop some data or write some porting code (postgres -> json/query -> rust -> sled perhaps?)
- new
to_sled_key
function that can be extened to hold more data
I am not sure if you even want to merge this but i just wanted to share the code and libraries.