fsprojects / fsprojects/FSharp.Data.SqlClient

Include Task-based execution on SqlCommandProvider

Open
#371 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
F#
Stars
206
Forks
66
PR merge metrics
No merged PRs in 30d

Description

It would be nice to have the option of using Task rather than Async when combining workflows with other asynchronous behaviors. Pretty much any third party library in the .NET ecosystem is going to be using Task and it would be handy to be able to jump right into that without converting from Async.

I am proposing to add the method 'TaskExecute' on the command generated from SqlCommandProvider. This method which would act in parallel to the currently existing 'AsyncExecute'.

I'm happy to work at implementing this if the package maintainers think it's a good idea and would be likely to merge it in.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the command generated from SqlCommandProvider and compare the existing AsyncExecute API with the proposed TaskExecute method. The work is done when TaskExecute provides the requested Task-based execution path in parallel with AsyncExecute and integrates with the project's existing validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp, sql
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.