diff options
author | Sebastian Schmidt <mrschmidt@google.com> | 2017-09-15 16:45:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-15 16:45:46 -0700 |
commit | c6bde890ce2b352f86aa699b28f829d4cd85424c (patch) | |
tree | 4bb647eacb640c75d8447d4d2edc83d304ec2adb /Firebase/Database/Public | |
parent | 06a7c4f330fd7cdc01d16a15a277df538a49b25d (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.h | 21 |
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. |