You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably with a comment, I was trying to avoid it because I found the function approach to be terser and because inline comments are not common in F#, but we'll likely need them for cases like this.
use cmd = DvdRental.CreateCommand<(* sql *)"SELECT title FROM public.film WHERE length > @longer_than">(dvdRental)
Type providers like FSharp.Data.Npgsql accept a SQL string constant as a type argument.
e.g.
Can you think of a trick where this extension could reliably detect these strings? Nothing I've considered seems like good (or even possible) options:
CreateCommand<
as a match for SQL.sql
that can be used insideconst()
.The text was updated successfully, but these errors were encountered: