简体   繁体   English

以编程方式将数据添加到在 BigQuery 表上创建的自定义列中

[英]Add Data Programatically into custom column created on BigQuery Table

I have created a column in the events table on BigQuery to log some event information.我在 BigQuery 的事件表中创建了一个列来记录一些事件信息。

How can I add data into that specific column programmatically from a mobile application?如何从移动应用程序以编程方式将数据添加到该特定列中?

This is my BigQuery Table这是我的 BigQuery 表

在此处输入图片说明

This is my Firebase schema这是我的 Firebase 架构在此处输入图片说明

This is the code I tried so far这是我到目前为止尝试过的代码

Bundle params = new Bundle(); 
params.putString("image_name", name); 
params.putString("full_text", text); 
mFirebaseAnalytics.logEvent("share_image", params); 

All client libraries for BigQuery are designed to be used in a trusted environment, such as your development machine, a server that you control, or Cloud Functions. BigQuery 的所有客户端库都旨在用于受信任的环境,例如您的开发机器、您控制的服务器或 Cloud Functions。 There are no official SDKs for Android or iOS that I know of.我知道没有适用于 Android 或 iOS 的官方 SDK。

The simplest I can think of is to host code using one of these libraries in Cloud Functions (either through Firebase, or directly through the gcloud tooling) to insert data into BigQuery, and then call that Cloud Function from your mobile app.我能想到的最简单的方法是使用 Cloud Functions 中的这些库之一(通过 Firebase 或直接通过gcloud工具)托管代码以将数据插入 BigQuery,然后从您的移动应用程序调用该 Cloud Function。 Be sure to secure access to that Cloud Function, so that only authorized users can insert data.请务必确保对该 Cloud Function 的访问安全,以便只有经过授权的用户才能插入数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将自定义以编程方式创建的 drawable 设置为用于状态的单选按钮 - set Custom Programatically created drawable to radioButton for states 将以编程方式创建的LinearLayout作为资源添加到Fragment中的View - Add Programatically created LinearLayout as resource to View in Fragment 如何在我已经创建的表中添加新列? - How to add a new column in my already created table? 在Android中以编程方式向主视图添加自定义视图 - Add a custom view to main view programatically in android 以编程方式将TextView添加到Listview自定义行 - Add TextView programatically to Listview custom row 以编程方式在活动视图顶部添加自定义视图 - Add a custom view at the top of views in activity Programatically 在getView上的自定义适配器内以编程方式添加textviews - Programatically add textviews within a Custom Adapter on getView 如何在自定义布局中设置以编程方式创建的图像的父对齐 - How to Set Parent Alignment of Programatically Created Image's in Custom Layout 如何将以编程方式创建的视图添加到xml中及特定组件下方的relativelayout上 - How to add view created programatically on to relativelayout in xml and below a specific component 以编程方式创建的ImageButtons中定义的putExtra数据仅看到最后一个值? - putExtra data defined in programatically created ImageButtons only sees last value?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM