angular / angular/angularfire

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

Aperta
#3,425 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
7.8k
Fork
2.2k
Merge medio
22h 28m
PR unite (30g)
6

Descrizione

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

- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide

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

- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk
- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)

*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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando il modo in cui databaseURL viene utilizzato nell’integrazione AngularFire/Firebase corrente e verifica se la richiesta è destinata a Firestore o a Realtime Database. Riproduci il comportamento con le versioni indicate e un nome di database non predefinito; il lavoro è completato quando una connessione documentata e testata al database richiesto funziona senza modificare la connessione predefinita.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, firebase, typescript
Ambito
database
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.