UNPKG

dyngoose

Version:

Elegant DynamoDB object modeling for Typescript

18 lines 609 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Table = void 0; function Table(metadata) { return (table) => { if (metadata.connection != null) { table.schema.dynamo = metadata.connection; } table.schema.setMetadata(metadata); // setup dynamic properties table.schema.defineAttributeProperties(); table.schema.defineGlobalSecondaryIndexes(); table.schema.defineLocalSecondaryIndexes(); table.schema.definePrimaryKeyProperty(); }; } exports.Table = Table; //# sourceMappingURL=table.js.map