3 ms·
We've been using https://github.com/Zaid-Ajaj/Npgsql.FSharp https://github.com/Zaid-Ajaj/Npgsql.FSharp and it's great. Uses well supported lib behind the covers
by JaggerJo 6y ago
We've been using https://github.com/Zaid-Ajaj/Npgsql.FSharp https://github.com/Zaid-Ajaj/Npgsql.FSharp and it's great. Uses well supported lib behind the covers and just provides a small layer on top.
Same thing exists from MS SQL https://github.com/Zaid-Ajaj/DustyTables https://github.com/Zaid-Ajaj/DustyTables , also great.
Used both in prod. No regrets and wouldn't wan't something else. Also involves zero magic - just raw SQL and a nice functional API.
- dfgdghdf 6y agoI also had a good experience with Npgsql.FSharp. I love that it is just an idiomatic F# layer on top of raw SQL. I don't think that ORM is a good fit for functional languages anyway. I believe there is some work with F# analyzers to provide compile-time checking of raw SQL, although I haven't tried it yet.
- JaggerJo 6y agoagreed. Often dealing with an ORM is more complex than just to write a bit of SQL and reading code. Yep, never tried it either. https://github.com/Zaid-Ajaj/Npgsql.FSharp.Analyzer https://github.com/Zaid-Ajaj/Npgsql.FSharp.Analyzer