Skip to content

Commit 1e4bdb0

Browse files
fix API issue
1 parent 637a18d commit 1e4bdb0

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 0.0.18-alpha
2+
* Fix API issue.
3+
14
### 0.0.17-alpha
25
* Improve exception message in case where table item is not found.
36

src/FSharp.DynamoDB/AssemblyInfo.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ open System.Runtime.CompilerServices
66
[<assembly: AssemblyProductAttribute("FSharp.DynamoDB")>]
77
[<assembly: AssemblyCompanyAttribute("Eirik Tsarpalis")>]
88
[<assembly: AssemblyCopyrightAttribute("Copyright © Eirik Tsarpalis 2016")>]
9-
[<assembly: AssemblyVersionAttribute("0.0.17")>]
10-
[<assembly: AssemblyFileVersionAttribute("0.0.17")>]
9+
[<assembly: AssemblyVersionAttribute("0.0.18")>]
10+
[<assembly: AssemblyFileVersionAttribute("0.0.18")>]
1111
[<assembly: InternalsVisibleToAttribute("FSharp.DynamoDB.Tests")>]
1212
do ()
1313

1414
module internal AssemblyVersionInformation =
15-
let [<Literal>] Version = "0.0.17"
15+
let [<Literal>] Version = "0.0.18"

src/FSharp.DynamoDB/RecordTemplate.fs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ type RecordTemplate<'TRecord> internal () =
105105
let f = ConditionalExpression.Extract pickler.RecordInfo expr
106106
fun i1 i2 i3 i4 -> new ConditionExpression<'TRecord>(f.Apply(i1, i2, i3, i4))
107107

108+
/// <summary>
109+
/// Precomputes a DynamoDB conditional expression using
110+
/// supplied quoted record predicate.
111+
/// </summary>
112+
/// <param name="expr">Quoted record predicate.</param>
113+
member __.PrecomputeConditionalExpr(expr : Expr<'I1 -> 'I2 -> 'I3 -> 'I4 -> 'I5 -> 'TRecord -> bool>) : 'I1 -> 'I2 -> 'I3 -> 'I4 -> 'I5 -> ConditionExpression<'TRecord> =
114+
let f = ConditionalExpression.Extract pickler.RecordInfo expr
115+
fun i1 i2 i3 i4 i5 -> new ConditionExpression<'TRecord>(f.Apply(i1, i2, i3, i4, i5))
116+
108117
/// <summary>
109118
/// Precomputes a DynamoDB update expression using
110119
/// supplied quoted record update expression.
@@ -150,6 +159,15 @@ type RecordTemplate<'TRecord> internal () =
150159
let uops = UpdateOperations.ExtractUpdateExpr pickler.RecordInfo expr
151160
fun i1 i2 i3 i4 -> new UpdateExpression<'TRecord>(uops.Apply(i1, i2, i3, i4))
152161

162+
/// <summary>
163+
/// Precomputes a DynamoDB update expression using
164+
/// supplied quoted record update expression.
165+
/// </summary>
166+
/// <param name="expr">Quoted record update expression.</param>
167+
member __.PrecomputeUpdateExpr(expr : Expr<'I1 -> 'I2 -> 'I3 -> 'I4 -> 'I5 -> 'TRecord -> 'TRecord>) : 'I1 -> 'I2 -> 'I3 -> 'I4 -> 'I5 -> UpdateExpression<'TRecord> =
168+
let uops = UpdateOperations.ExtractUpdateExpr pickler.RecordInfo expr
169+
fun i1 i2 i3 i4 i5 -> new UpdateExpression<'TRecord>(uops.Apply(i1, i2, i3, i4, i5))
170+
153171
/// <summary>
154172
/// Precomputes a DynamoDB update expression using
155173
/// supplied quoted record update operations.
@@ -200,9 +218,9 @@ type RecordTemplate<'TRecord> internal () =
200218
/// supplied quoted record update operations.
201219
/// </summary>
202220
/// <param name="expr">Quoted record update operations.</param>
203-
member __.PrecomputeUpdateExpr(expr : Expr<'I1 -> 'I2 -> 'I3 -> 'I4 -> 'TRecord -> UpdateOp>) =
221+
member __.PrecomputeUpdateExpr(expr : Expr<'I1 -> 'I2 -> 'I3 -> 'I4 -> 'I5 -> 'TRecord -> UpdateOp>) : 'I1 -> 'I2 -> 'I3 -> 'I4 -> 'I5 -> UpdateExpression<'TRecord> =
204222
let uops = UpdateOperations.ExtractOpExpr pickler.RecordInfo expr
205-
fun i1 i2 i3 i4 -> new UpdateExpression<'TRecord>(uops.Apply(i1, i2, i3, i4))
223+
fun i1 i2 i3 i4 i5 -> new UpdateExpression<'TRecord>(uops.Apply(i1, i2, i3, i4, i5))
206224

207225
/// Convert table key to attribute values
208226
member internal __.ToAttributeValues(key : TableKey) =

0 commit comments

Comments
 (0)