UNPKG

@cnlabs/yandexdb-rest

Version:

library than decorates yandex db dynamodb rest api in lightweight style

18 lines (15 loc) 526 B
const ydb = require('./ydb') new Promise(async (resolve) => { await ydb.query('CreateTable', { TableName: 'll-auth/users', AttributeDefinitions: [ {AttributeName: "userId", AttributeType: "N"}, {AttributeName: "userName", AttributeType: "S"}, {AttributeName: "passwordHash", AttributeType: "S"}, ], KeySchema: [ {AttributeName: 'userId', KeyType: "HASH"} ] } ).then(console.log); });