Students Save 30%! Learn & create with unlimited courses & creative assets Students Save 30%! Save Now

2.2 Add a Primary Key and Description

A common requirement with databases is to be able to retrieve a single object, or record, using a unique identifier. Primary keys, in other words. Strictly speaking, Realm is an object database as opposed to a relational database, so primary keys are not created by default. But they are very easy to add.