aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Database/Public
diff options
context:
space:
mode:
authorGravatar Sebastian Schmidt <mrschmidt@google.com>2017-09-15 16:45:46 -0700
committerGravatar GitHub <noreply@github.com>2017-09-15 16:45:46 -0700
commitc6bde890ce2b352f86aa699b28f829d4cd85424c (patch)
tree4bb647eacb640c75d8447d4d2edc83d304ec2adb /Firebase/Database/Public
parent06a7c4f330fd7cdc01d16a15a277df538a49b25d (diff)
Adding Multi-Resource support to the Firebase iOS SDK (#278)
* Adding Multi-Resource support to the Firebase iOS SDK. This CL also makes RepoInfo hashable and simplifies RepoManager based on this.
Diffstat (limited to 'Firebase/Database/Public')
-rw-r--r--Firebase/Database/Public/FIRDatabase.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Firebase/Database/Public/FIRDatabase.h b/Firebase/Database/Public/FIRDatabase.h
index a67f96d..606f164 100644
--- a/Firebase/Database/Public/FIRDatabase.h
+++ b/Firebase/Database/Public/FIRDatabase.h
@@ -46,6 +46,27 @@ FIR_SWIFT_NAME(Database)
+ (FIRDatabase *) database FIR_SWIFT_NAME(database());
/**
+ * Gets a FirebaseDatabase instance for the specified URL.
+ *
+ * @param url The URL to the Firebase Database instance you want to access.
+ * @return A FIRDatabase instance.
+ */
++ (FIRDatabase *)databaseWithURL:(NSString *)url NS_SWIFT_NAME(database(url:));
+
+/**
+ * Gets a FirebaseDatabase instance for the specified URL, using the specified
+ * FirebaseApp.
+ *
+ * @param app The FIRApp to get a FIRDatabase for.
+ * @param url The URL to the Firebase Database instance you want to access.
+ * @return A FIRDatabase instance.
+ */
+// clang-format off
++ (FIRDatabase *)databaseForApp:(FIRApp *)app
+ URL:(NSString *)url NS_SWIFT_NAME(database(app:url:));
+// clang-format on
+
+/**
* Gets an instance of FIRDatabase for a specific FIRApp.
*
* @param app The FIRApp to get a FIRDatabase for.