---
title: ModelExecutor
framework: swiftdata
role: symbol
role_heading: Protocol
path: swiftdata/modelexecutor
---

# ModelExecutor

An interface for performing storage-related tasks using an isolated model context.

## Declaration

```swift
protocol ModelExecutor : Executor
```

## Topics

### Accessing the context

- [modelContext](swiftdata/modelexecutor/modelcontext.md)

## Relationships

### Inherits From

- [Executor](swift/executor.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

### Inherited By

- [SerialModelExecutor](swiftdata/serialmodelexecutor.md)

### Conforming Types

- [DefaultSerialModelExecutor](swiftdata/defaultserialmodelexecutor.md)

## See Also

### Model executors

- [DefaultSerialModelExecutor](swiftdata/defaultserialmodelexecutor.md)
- [SerialModelExecutor](swiftdata/serialmodelexecutor.md)
