Skip to content

Commit

Permalink
feat: add boolean type to dynamodb
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh153 committed Nov 9, 2024
1 parent 65af999 commit f07757c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools-deno/tools-server/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vighnesh153/tools-server",
"version": "0.1.4",
"version": "0.1.5",
"exports": {
"./aws_dynamodb": "./src/aws_dynamodb/mod.ts",
"./aws_s3": "./src/aws_s3/mod.ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export class DynamoDBTableImpl<T extends TableMetadata>
switch (typeof value) {
case "number":
case "string":
case "boolean":
exprAttrValues[formattedKey] = value;
break;
default:
Expand Down
1 change: 1 addition & 0 deletions tools-deno/tools-server/src/aws_dynamodb/table_metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export type DynamoTypeMap = {
string: string;
number: number;
boolean: boolean;
};

export interface TableMetadata {
Expand Down

0 comments on commit f07757c

Please sign in to comment.