My database looks something like this:
How can I make Firebse realtime database rules so that I can query classes/18043249279 (or any other folder inside classes/), but not classes as a whole?
You cannot specify a certain path with Firebase Realtime Database. For information as to how the rules work for Realtime Database, please click here
I highly recommend that you use Cloud Firestore by Firebase, which would allow you specify what files certain users can view in a collection. More information for Cloud Firestore can be found here here
Related
I want to create external table in BigQuery and the data source is from Google Sheet. Is it possible to do it using dbt? In the yml file, where should I put the URI?
The main problem is, I don’t have the access to create it directly in BigQuery.
One way to handle a Google Sheet as a source is by creating a new table out of it in BigQuery via Connected Sheets.
Then, you create a new source in dbt that relies on that table, and start building your downstream models from there.
As far as I know, you cannot create a source directly from dbt, unless it is a seed file, which I woul not recommend unless it is a rather static file (e.g. country names and ISO codes, which is not prone to change over time).
We have a similar situation where the data source is from Google Sheet.
The end user updates the Google sheet on a periodical basic and we replicate it using Fivetran to our Snowflake datastore.
DBT can then pick up the data seamlessly.
I'm new to iOS development also using Firebase. I want to know that if it's advisable to create sub collections under my users collection in my Firestore database so that each user once they have authenticated they will have access to their own data? Or shall i create new collections and reference the users ids once they authenticated with my login.
Reason i ask because there's multiple ways of using firebase but some ways aren't efficient and i want to know, what is recommended>
As was mentioned by #BurakAkkaş, #jnpdx and #Jay, Firestore is a NoSQL, document-oriented database. With that said, creating sub collections for a users collection in a Firestore DB so that each user has access to their own data once authenticated may be (and may not be) a better approach than creating new collections and reference the users IDs once they authenticated with your login.
Structuring Data and Cloud Firestore Data model can help to understand how to structure your DB.
If you want to use sub collections and ensure that users can't access other users data, please refer to the Authentication article.
Without understanding the entire use case, it's difficult to make an accurate suggestion; your Firebase Structure is dependent on what queries you want to run. There are only some cases where a users data is only a users data that's never shared. Nesting collections makes those queries difficult to craft and not easily scalable.
You can provide your query details and a proposed structure to get further community support.
I want to create an offline iOS application using Realm. Users just need to read the database, they don't need to update or create entries.
I can create my pre-populated database using Realm Studio and I need to use that database file in my final app so users can access the database with the same data. For example, jobs.realm file with same data should be available to the users when they first launch the app.
I've been searching for a solution but couldn't find anything I can understand.
Follow the documentation for bundling a realm file: https://realm.io/docs/swift/latest/#bundling-a-realm
I'm working on an iOS app that connects with Firebase. I was wondering, if it's possible to have data that a user uploads only be accessible to him/her. The docs explained how to do this for Firebase storage, but I'm not sure how to create a similar effect for the database. Is it possible to do this, or will all data be public to all users?
Additionally, if it is possible to have the data only be accessible to the specific user, will the data still be visible to me in the database?
Thanks for your help.
What you are looking for is a concept called "security rules" with Firebase. Is it available with Realtime database and Firestore.
You can restrict access as you described and data remains available to you since you will be the administrator of the database.
So currently, I am making an app in which it allows the user to create expenses and store them. Each expense has properties such as date, name, amount, type of expense, category and etc. Currently, I am storing all of this on CoreData, which I find is easy and manageable, however I really want to move to database storage so that the app doesn't take up an increasing amount of storage in the user's phone.
I have several questions if someone can answer them.
Can firebase databases be used to store characteristics of an object like core data can sort of like a JSON String?
Can firebase save something and retrieve it if you are not connected to the internet?
Which firebase storage should I use. When I go on their website, they have multiple databases such as RealTime, Cloud Storage and etc. which one would be the best one for what I am trying to do.
Thanks for all the help!
Firebase store data as JSON, So you need to export your Core Data Model structure and values into a JSON format, to upload it on Firebase.
Yes, Firebase allows offline save and retrieve data into DB. You need to enable offline Persistence for that.
You have to use RealTime Database or Cloud Firestore to store data in Firebase database. Cloud Storage is used to store files like images, text files or other files.