dotmh / dyn-o-might

A Light weight wrapper for Dynamo DB functions.
Apache License 2.0
1 stars 0 forks source link

Make Compatible with Local instances #12

Closed dotmh closed 5 years ago

dotmh commented 5 years ago

For this we need to allow the endpoint to be set by the end user. We therefore need to change the code in https://github.com/dotmh/dyn-o-might/blob/e3d59cbb553afd1968d22d0cb9edec0dbdaefd05/index.js#L3 to use the constructer i.e. new.

The other step will be to add an options parameter to the class so that options for the dynamoDB constructor can be set when the class is constructed.

dotmh commented 5 years ago

Already is , as the instance used by DB is controlled from outside of Dynomight by the calling code.