Skip to content

WIP: Replace Posgresql with a simpiler embedded database

Stephen D requested to merge gh-a96334b0/2/unknown/sled into master

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 of DATABASE_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.

Merge request reports