LayerTwo-Labs / bip300301_enforcer

CUSF software enforcing BIP300 and BIP301 rules.
1 stars 4 forks source link

Consider using `diesel` as an ORM for dealing with SQLite #47

Closed nchashch closed 6 days ago

nchashch commented 2 weeks ago

Another option is https://docs.rs/serde_rusqlite/latest/serde_rusqlite/

torkelrogstad commented 2 weeks ago

My suggestion is to avoid using ORMs, and instead be as close to raw SQL as possible. ORMs in my opinion provide little clear benefit, and mostly lead to head scratching

nchashch commented 6 days ago

Since we are not using SQLite that much I think an ORM would be overkill, it would just make the code more complicated without much benefit. So I'll close this one.