You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/09/28 13:43:42 UTC

[GitHub] [beam] pcostell commented on a diff in pull request #23322: Support named databases in Firestore connector. Fix and enable Firestore IT test

pcostell commented on code in PR #23322:
URL: https://github.com/apache/beam/pull/23322#discussion_r982422736


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/firestore/FirestoreOptions.java:
##########
@@ -45,4 +46,15 @@ public interface FirestoreOptions extends PipelineOptions {
    * @see com.google.cloud.firestore.FirestoreOptions.Builder#setEmulatorHost(java.lang.String)
    */
   void setEmulatorHost(String host);
+
+  /**
+   * The Firestore database ID to connect to. Note: named database is currently an internal feature
+   * in Firestore. Do not set this to anything other than "(default)".
+   */
+  @Description("Firestore database ID")
+  @Default.String("(default)")
+  String getFirestoreDb();

Review Comment:
   not sure on the consistency across beam, but given this is in the FirestoreOptions already, I would align this closer to the Firestore API naming convention: getDatabaseId / setDatabaseId (maybe getDatabase/setDatabase, but the Id suffix aligns better with our API style)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org