Closed mausch closed 11 years ago
I wish there were a way to vote for issues. :) This is awesome. Would it be a better fit for FSharpx?
Well, leaving a comment counts as a vote :) With the SqlDataConnection type provider and enhanced computation expressions in F# 3.0 this isn't so relevant...there will always be some scenarios that require dropping to raw SQL though. FSharpx could include a basic type provider that returns just the SQL string (validating at compile-time of course), but more generally this would involve actually running the query and returning the results, which involves connection life management, etc.
Given the syntax in the FSharpx list, I would think we could add overloads that took an existing connection or created a new one should no connection be provided. I haven't played with Type Providers yet -- bad me -- but I would think that would be doable.
Statically check SQL strings using a type provider, like Nemerle's SQL macro: http://nemerle.org/wiki/index.php?title=SQL_macros