fsprojects / fsprojects/FSharp.AWS.DynamoDB

Consider supporting auto-quotations in transaction arguments

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
F#
Stars
61
Forks
18
Avg merge
7h 27m
Merged PRs (30d)
1

Description

Since F# 4.0 it has been possible to do C# LINQ style automatic convertion of function arguments into quoted expression trees. In the case of FSharp.AWS.DynamoDB this means that an update expression can be written as follows:

table.UpdateItem(key, fun e -> { e with Value = e.Value + 1L })

without having to quote the lambda argument. It's a nice enhancement without introducing any breaking changes.

Contributor guide

No contributing guide indexed for this repository

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 reading the linked F# 4.0 auto-quotation design and locating the transaction or update-expression APIs that currently require quoted lambdas. Confirm how the existing UpdateItem argument is represented, then define done as accepting the unquoted lambda syntax shown without breaking existing callers.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, fsharp
Domain
api, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.