Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #265 from exoego/set-wrapper
Browse files Browse the repository at this point in the history
[dynamodb] Add dynamodb Set wrapper for BS/NS/SS
  • Loading branch information
exoego authored Aug 12, 2020
2 parents c6f393a + 18a62a4 commit 95dbac1
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ package object dynamodb {
def unmarshall(data: AttributeMap, options: DynamoDBConverterOptions = js.native): js.Object = js.native
}

trait DynamoDBSetWrapper[V] extends js.Object {
@js.annotation.JSName("type")
def typeName: String
def wrapperName: String
def values: js.Array[V]
}

trait DynamoDBNumberSet extends DynamoDBSetWrapper[Double]
trait DynamoDBStringSet extends DynamoDBSetWrapper[String]
trait DynamoDBBinarySet extends DynamoDBSetWrapper[js.Any]

trait DynamoDBConverterOptions extends js.Object {
var convertEmptyValues: js.UndefOr[Boolean] = js.undefined
var wrapNumbers: js.UndefOr[Boolean] = js.undefined
Expand Down

0 comments on commit 95dbac1

Please sign in to comment.