title: Using flutter how to use more than one firebase realtime database in the same App
body: <p>We are developing an application in flutter using firebase realtime database, to provide several services for different customers. I would like to have a different database for each customer using the same firebase project. As firebase support multiple database in the same project I believe is possible to implement using FirebaseDatase plugin.</p>
  
  <p>I tried to set a reference to the secondary database, but I can’t find a settle commando to change the instance for this database. If you are using Java or other language that uses Firebase SDK this is very simple, but I can't find a way using Flutter.</p>
  
  <pre><code>Future&lt;DataSnapshot&gt; getDbData(String dbChildPath) async {
  DataSnapshot _objdatabase;
  try {
    await FirebaseDatabase.instance
        .reference()
        .child(dbChildPath)
        .once()
        .then((DataSnapshot snapshot) {
      _objdatabase = snapshot;
      print(_objdatabase.toString());
    });
    return _objdatabase;
  } catch (erroDB) {
    print(erroDB);
    return null;
  }}
  </code></pre>
  
  <p>My code is getting data from de default database.</p>
  
  <p>How do I set the URL for the secondary database instance?</p>
  
  <p>Please any idea?</p>