---
title: isReadOnly
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspersistentstoredescription/isreadonly
---

# isReadOnly

A flag that indicates whether this store will be read-only.

## Declaration

```swift
var isReadOnly: Bool { get set }
```

## Discussion

Discussion This is a convenience method for setting the NSReadOnlyPersistentStoreOption on the associated store.

## See Also

### Configuring a Persistent Store Description

- [url](coredata/nspersistentstoredescription/url.md)
- [configuration](coredata/nspersistentstoredescription/configuration.md)
- [timeout](coredata/nspersistentstoredescription/timeout.md)
- [type](coredata/nspersistentstoredescription/type.md)
- [shouldAddStoreAsynchronously](coredata/nspersistentstoredescription/shouldaddstoreasynchronously.md)
- [shouldInferMappingModelAutomatically](coredata/nspersistentstoredescription/shouldinfermappingmodelautomatically.md)
- [shouldMigrateStoreAutomatically](coredata/nspersistentstoredescription/shouldmigratestoreautomatically.md)
- [setOption(_:forKey:)](coredata/nspersistentstoredescription/setoption(_:forkey:).md)
- [setValue(_:forPragmaNamed:)](coredata/nspersistentstoredescription/setvalue(_:forpragmanamed:).md)
