fsprojects / fsprojects/FSharp.Data.SqlClient

Question: For what reason would a SPROC not have an available constructor?

Open
#368 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I am trying to use the SqlProgrammabilityProvider to execute stored procedures. I've set up some basic crud operations for a DataType on my project:

  • Select (int -> Option<DataType>)
  • SelectAll (unit -> Seq<DataType>)
  • Insert (DataType -> int)
  • Update (DataType -> bool)
  • Delete (int -> bool)

Curiously though, only the Select/SelectAll can be called. The Insert, Update, and Delete commands say there is no available constructor.

I can execute the stored procedures directly in the database and have confirmed that my user that I am connecting with has permission to execute the stored procedures. Can anyone offer another explanation for why I cannot use them?

Thanks

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

Begin at the SqlProgrammabilityProvider entry point and reproduce the Insert, Update, and Delete cases against the stated stored procedures, comparing them with Select and SelectAll. Done means identifying why constructors are unavailable and documenting or testing the behavior; the issue names no repository files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.