Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lexuanquynh
Created July 15, 2022 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lexuanquynh/936597191e30b3090572e99304623b81 to your computer and use it in GitHub Desktop.
Save lexuanquynh/936597191e30b3090572e99304623b81 to your computer and use it in GitHub Desktop.
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