Created
July 15, 2022 03:34
-
-
Save lexuanquynh/936597191e30b3090572e99304623b81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RealmSwift | |
import QRealmManager | |
class PetRepository: DatabaseConfigurable { | |
var realmMemoryType: RealmMemoryType { | |
return .inStorage | |
} | |
var schemaName: String? { | |
return "PetSchema" | |
} | |
var schemaVersion: UInt64? { | |
0 | |
} | |
var objectTypes: [Object.Type]? { | |
return [DogToy.self, Dog.self, DogClub.self, Person.self] | |
} | |
var embeddedObjectTypes: [EmbeddedObject.Type]? { | |
return nil | |
} | |
var migrationBlock: MigrationBlock? { | |
return nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment