Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Failed to connect to a new db under same project other than default

未关闭
#3,425 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
angular, firebase, typescript
领域
database

调研方向

首先跟踪 databaseURL 在当前 AngularFire/Firebase 集成中的使用方式,并确认请求的目标是 Firestore 还是 Realtime Database。使用报告中的版本和非默认数据库名称重现该行为;完成的标准是:在不更改默认连接的情况下,与所请求数据库的连接已记录并经过测试且能够正常工作。

由索引模型根据 Issue 内容生成。

描述

Hi, do you support connecting to multiple dbs under same project? it doesn't look like it at the latest version. google forestore supports multiple dbs under a same project now.
https://cloud.google.com/blog/products/databases/manage-multiple-firestore-databases-in-a-project

If planned to support it in future, when would that be happening? If I am wrong, please let me know.
Thanks,

Chris

IMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.

Thank you for contributing to the Angular and Firebase communities!

Have a usage question?

Yes

If the official documentation doesn't help, try asking through our officially supported channels:

Please avoid double posting across multiple channels!

Think you found a bug?

Yes

Have a feature request?

support connecting to multiple dbs under same project

Version info

What versions of the following libraries are you using? Note that your issue may already
be fixed in the latest versions.
Angular:
15.1.0
Firebase:
12.5.2
AngularFire:
7.6.1

Other (e.g. Ionic/Cordova, Node, browser, operating system):
node: 16.15.0

How to reproduce these conditions

put a new database name into datbaseURL:

Failing test unit, Stackblitz demonstrating the problem

Provide a failing test unit, or create a minimal, complete, and
verifiable example (http://stackoverflow.com/help/mcve) using
StackBlitz (https://stackblitz.com/edit/angular-fire-start).

Steps to set up and reproduce
enter a new database name into datbaseURL: Ex) databaseURL: 'https://test.firebaseio.com' (test is name of db)

Sample data and security rules

Expected behavior

What is the expected behavior?
If dabaseURL is put such as databaseURL: 'https://test.firebaseio.com', it should connect to the test database.

Actual behavior

What is the actual behavior?
it connects to default db currently.

主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
3 天 6 小时
30 天内合并 PR
5

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

angular/angularfire 的其他 Issue

查看 angular/angularfire 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。