Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringReader type provider #71

Open
dmitry-a-morozov opened this issue Jun 13, 2016 · 1 comment
Open

StringReader type provider #71

dmitry-a-morozov opened this issue Jun 13, 2016 · 1 comment

Comments

@dmitry-a-morozov
Copy link
Member

dmitry-a-morozov commented Jun 13, 2016

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
@jpierson
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants