How to handle error with Realm during writing?
问题 I'm used to working with SQL database, I'm new to Realm and, so far, I'm really impressed by the ease of use of this new mobile database. But there is something that I really don't undestand: how to handle error throwing? Take this simple example: I want to store in a Realm DB some market stocks. Each stock has a "symbol" as a unique identifier: APPL for Apple Inc, TSLA for Tesla Motors Inc, etc. I believe it would make sense to declare these symbols as primary keys, since it's not possible