I suggest we ...

10 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Don Syme commented  ·   ·  Flag as inappropriate

    You can actually do this as a library today if you try hard enough. Just make Sql a type and each of the functions a method that takes a quotation as an argument implicitly.

    Either way, this belongs in a library not in FSharp.Core.

  • Anonymous commented  ·   ·  Flag as inappropriate

    The idea title should be F# query expression with pipelined style
    dataSource
    |>Sql.where (fun a->a.ColumnA)
    |>Sql.sortBy (fun a->a.ColumnB)
    |>Sql.skip 10
    |>Sql.take 20
    |>Sql.run
    |>Seq.iter (fun a->printfn "%s" (string a.ColumnA))

F# Language

Feedback and Knowledge Base