[英]How do I get the list of tables in my BigQuery dataset in a Google AppScript
I'm writing a Google AppsScript and am having trouble getting a list of the tables in my DataSet.我正在编写一个 Google AppsScript,但在获取我的 DataSet 中的表列表时遇到了麻烦。
Here is my code...这是我的代码...
function GetTablesList(){
var tableList = BigQuery.Tables.list('crave-production','Rons_ODBC_Test')
Logger.log('tableListItemCount:', tableList.totalItems)
}
It returns nothing after the 'tableListItemCount:' label.在 'tableListItemCount:' label 之后它什么也不返回。
What am I doing wrong?我究竟做错了什么?
I believe this Logger.log('tableListItemCount:', tableList.totalItems)
should be this Logger.log('tableListItemCount: %s', tableList.totalItems)
我相信这个Logger.log('tableListItemCount:', tableList.totalItems)
应该是这个Logger.log('tableListItemCount: %s', tableList.totalItems)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.