4 ms·
In F#, you get type providers like https://fsprojects.github.io/SQLProvider/ https://fsprojects.github.io/SQLProvider/ or https://fsprojects.github.io/FSharp
by keithnz 8y ago
In F#, you get type providers like
https://fsprojects.github.io/SQLProvider/ https://fsprojects.github.io/SQLProvider/
or
https://fsprojects.github.io/FSharp.Data.SqlClient/ https://fsprojects.github.io/FSharp.Data.SqlClient/
What is not obvious if you have never seen this before, is that this dynamically connects your database WHILE you are coding and automatically gives you auto completion, fully understands the types, and will give compile errors if your code doesn't match the database. Feels like Magic (or LinqPad if you have ever used that )
The only downside is you need a DB available for your CI build tools ( which is not too difficult to do ). Some F# people will also opt for a light weight mapper like Dapper.