fsprojects / fsprojects/FSharp.Data.SqlClient

What int is returned when Executing a DELETE or UPDATE?

Open
#355 1 comment 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

let x =
    use cmd = new SqlCommandProvider<"DELETE FROM...", designTimeConn>(conn)
    cmd.Execute()

x is an int. What does it represent? Number of rows affected? A status code?

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 at the SqlCommandProvider Execute entry point shown in the issue and inspect the repository's existing API documentation for command results. Confirm what the returned int represents for DELETE and UPDATE, then document that behavior where the provider's Execute result is described.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp, sql
Domain
databases
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.