---
title: databaseScope
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspersistentcloudkitcontaineroptions/databasescope-4c72t
---

# databaseScope

The database scope — public, private, or shared — to use for a specified store in a persistent CloudKit container.

## Declaration

```swift
var databaseScope: CKDatabase.Scope { get set }
```

## See Also

### Creating Container Options

- [init(containerIdentifier:)](coredata/nspersistentcloudkitcontaineroptions/init(containeridentifier:).md)
- [containerIdentifier](coredata/nspersistentcloudkitcontaineroptions/containeridentifier.md)
