fsprojects / fsprojects/FSharp.Data.SqlClient

Provide types with measures

Open
#65 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature up-for-grabs
Dominant language
F#
Stars
206
Forks
66
PR merge metrics
No merged PRs in 30d

Description

Would be nice to be able to generate types that include units assigned. I imagine this could apply by convention or by explicitly indicating the name of the column containing the unit name, e.g. "m", "m/s", etc. At present, if you want to use types with assigned units, you have to define the measure types and the target types, then map the data from SqlCommandProvider's types into the target types, multiplying each measure value by 1.<m/s>, or whatever the type should be.

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 with the SqlCommandProvider type-generation behavior and the existing issue discussion to clarify whether unit names should come from a convention, an explicitly selected column, or both. Done would mean a defined approach for generating unit-aware types and a clear way to verify the generated measure types against the current manual mapping workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp, sql
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.