FSharp.Management icon indicating copy to clipboard operation
FSharp.Management copied to clipboard

StringReader type provider

Open dmitry-a-morozov opened this issue 8 years ago • 1 comments

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

dmitry-a-morozov avatar Jun 13 '16 17:06 dmitry-a-morozov

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.

jpierson avatar Nov 17 '16 21:11 jpierson