So, in the wrap-up challenge for Module 1 of the CWC+ iOS Database course, we challenged with implementing add/edit/delete database functions on a Reading List App. If we so choose, we can start from scratch and create the whole app from new. I don’t feel confident enough to wade through […]
iOS Databases – Module 1
The final lesson of Module 1 from the CWC+ iOS Database course is a short video encouraging us to think about how best to arrange our data in Firestore depending upon what we need from it for each stage of our app, concluded with a general “do whatever’s easiest for […]
Lesson 12 of Module 1 of the CWC+ iOS Database course covers compound queries. This is something I used all the time with MySQL / MariaDB. I’m rather bemused to discover that we can’t actually do compound queries “as-is”. We have to create them outside of the code first. Either […]
I, naturally, used queries a lot in the days of MySQL / MariaDB on my web databases, so Lesson 11 from Module 1 of the CWC+ iOS Database course was always going to be one that I looked forward to. Google has ensured that querying databases is pretty much as […]
I’m starting to feel that Google has made Firestore excessively easy for app developers. That’s both a good thing and a bad thing. It’s a good thing because it enables us to get up and running with databases without requiring a massive amount of complex knowledge. But it’s also a […]
Lesson 10 from Module 1 of the CWC+ iOS Database course teaches us how to be notified of changes to our Firestore collections and databases. This code would notify us of any changes in the collection. Every time the collection changes, the completion handler will run. When we’re done with […]
Lesson 9 from Module 1 of the CWC+ iOS Database course covers reading data back from Firestore. To read back a single document, we can do this: Or, we can iterate through all documents, thus: Seems fairly straightfoward so far.
Lesson 8 from Module 1 of the CWC+ iOS Database course shows us how we can use completion handlers to check for errors when we interract with Firestore. We can use this when we try to delete a document, re: When updating a document, re: Just keeping this here to […]