You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,18 +53,23 @@ All CLI options are optional:
53
53
--optimizeDbBeforeStartup -o Optimizes the underlying database tables before starting up DynamoDB on your computer. You must also specify -dbPath when you use this parameter.
54
54
--migrate -m After starting DynamoDB local, create DynamoDB tables from the Serverless configuration.
55
55
--seed -s After starting and migrating dynamodb local, injects seed data into your tables. The --seed option determines which data categories to onload.
56
+
--convertEmptyValues -e Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.
56
57
```
57
58
58
59
All the above options can be added to serverless.yml to set default configuration: e.g.
59
60
60
61
```yml
61
62
custom:
62
63
dynamodb:
64
+
# If you only want to use DynamoDB Local in some stages, declare them here
65
+
stages:
66
+
- dev
63
67
start:
64
68
port: 8000
65
69
inMemory: true
66
70
migrate: true
67
71
seed: true
72
+
convertEmptyValues: true
68
73
# Uncomment only if you already have a DynamoDB running locally
Copy file name to clipboardExpand all lines: index.js
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,10 @@ class ServerlessDynamodbLocal {
74
74
seed: {
75
75
shortcut: "s",
76
76
usage: "After starting and migrating dynamodb local, injects seed data into your tables. The --seed option determines which data categories to onload.",
77
+
},
78
+
convertEmptyValues: {
79
+
shortcut: "e",
80
+
usage: "Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.",
77
81
}
78
82
}
79
83
},
@@ -101,6 +105,13 @@ class ServerlessDynamodbLocal {
0 commit comments