FSharp.Management
FSharp.Management copied to clipboard
StringReader type provider
Description
https://twitter.com/dsyme/status/742300239739166720 https://fslang.uservoice.com/forums/245727-f-language/suggestions/13412670-add-feature-to-allow-string-literals-to-be-separat
Expected behavior
type MyQuery = StringReader<"c:\temp\myQuery.sql">
// the type provider should also accept encoding as static param
open FSharp.Data
let getData() =
use cmd = new SqlCommandProvider<MyQuery.Content, "Server=.;Trusted_connection=yes">
for x in cmd.Execute() do
printfn "%A" x
Would there be any hope for tooling around the string path fed to the StringReader type provider? I would like to see Visual Studio and VSCode support for things like F12 (Goto Definition) on c:\temp\myQuery.sql
if possible. Without this I don't know if the type provider adds much value.