[FR] Change the firestore db in firestore.client.
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
先閱讀 issue 中描述的 firestore.client 和 initialize_app 進入點,然後將它們的選項與 Google Cloud Firestore Client 介面進行比較。確認 databaseId 應歸屬於 firestore.client 還是應用程式初始化,並確認無需依賴 databaseURL 即可選取非預設資料庫。
由索引模型根據 Issue 內容生成。
描述
In short: There is currently no way to change the firestore database to write to from default.
See question on stackoverflow: https://stackoverflow.com/questions/78533417/how-to-write-to-a-firestore-db-other-than-default-in-a-python-cloud-function
As far as I understand there is currently no option to pass the databaseId to firestore.client or to the options when initializing the app (initialize_app(cred)). You can pass the databaseURL to the options in initialze_app, however the Url cannot be looked up in the firebase console anymore.
In my opinion, it would make sense to passt database as an argument to firestore.client() much like you would when initializing the Client class in google.cloud.firestore directly.
db = firestore.client(app, database="my-db")
Alternatively the databaseId could be passed as an option when initializing the app.
app = initialize_app(cred, options={"databaseId": "my-db")
I'd be willing to implement this feature.
- 主要語言
- Python
- 星號
- 1.2k
- 分支
- 362
- 平均合併
- 8 小時 7 分鐘
- 30 天內合併 PR
- 3
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
firebase/firebase-admin-python 的其他 Issue
-
Fix typos and wrong types in remote_config.py可能已有人在做 @Shubham-Padkonde 於 13 天前認領。 未關閉api: remoteconfig
難度 2/5 1-3 小時 新手友好度 75/100
firebase/firebase-admin-python#957 · 1 則留言 ·
維護者通常 1 天內回覆
-
api: database type: feature request
難度 2/5 1-3 小時 新手友好度 62/100
firebase/firebase-admin-python#58 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
firebase/firebase-admin-python#978 · 1 則留言 ·
維護者通常 1 天內回覆
-
[FR] Support VERIFY_AND_CHANGE_EMAIL in generate_email_action_link (parity with firebase-admin-node)可能已有人在做 @lahirumaramba 於 155 天前認領。 未關閉api: auth
firebase/firebase-admin-python#949 · 2 則留言 · 1 個 reaction · 已指派 1 人 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 43/100
firebase/firebase-admin-python#945 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 firebase/firebase-admin-python 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 92/100
-
Harmony OPeNDAP SubSetter (HOSS) Geographic LARC_CLOUD PREFIRE_SAT2_AUX-SAT R01 production
難度 2/5 1-3 小時 新手友好度 68/100
nasa/harmony-autotester#245 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
Deltares/imod-python#1928 ·
-
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
feature
難度 2/5 1-3 小時 新手友好度 66/100