fsprojects / fsprojects/FSharp.Data.SqlClient
Provide types with measures
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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