Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3,425 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
angular, firebase, typescript
Lĩnh vực
database

Hướng nghiên cứu

Bắt đầu bằng cách theo dõi cách databaseURL được sử dụng trong tích hợp AngularFire/Firebase hiện tại và xác minh xem yêu cầu nhắm đến Firestore hay Realtime Database. Tái hiện hành vi với các phiên bản được báo cáo và một tên cơ sở dữ liệu không mặc định; được xem là hoàn thành khi kết nối đã được ghi lại và kiểm thử tới cơ sở dữ liệu được yêu cầu hoạt động mà không thay đổi kết nối mặc định.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
7.8k
Fork
2.2k
Merge trung bình
3 ngày 6 giờ
Pull request đã merge (30 ngày)
5

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của angular/angularfire

Tất cả issue của angular/angularfire

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.