duenamodb
Version:
Simple DynamoDB client written in TypeScript.
20 lines • 541 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DDBClient = void 0;
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
class DDBClient {
static _client;
constructor() { }
static params;
static init() {
this._client = new client_dynamodb_1.DynamoDBClient(this.params);
}
static get instance() {
if (!this._client) {
this.init();
}
return this._client;
}
}
exports.DDBClient = DDBClient;
//# sourceMappingURL=client.js.map