[英]How to get data from a csv stored in azure blob storage using node.js
[英]How do I get a list of tables from Azure Table Storage using Node.js?
我在node.js模块中使用azure-storage-node包。 我可以创建表和实体,但是看不到如何从存储容器中获取表列表。 我该怎么做呢?
您将需要调用listTablesSegmented
方法来列出表。
var azure = require('azure-storage');
var tableSvc = azure.createTableService('account-name', 'account-key');
tableSvc.listTablesSegmented(null, function(error, result) {
if (!error) {
var entries = result.entries;
for (var i=0; i<entries.length; i++) {
console.log(entries[i]);//prints table name
}
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.