Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 6.0
// swift-tools-version: 6.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Build](https://github.com/codefiesta/VimKit/actions/workflows/swift.yml/badge.svg)
![Xcode 16.4+](https://img.shields.io/badge/Xcode-16.4%2B-gold.svg)
![Swift 6.0+](https://img.shields.io/badge/Swift-6.0%2B-tomato.svg)
![Swift 6.1+](https://img.shields.io/badge/Swift-6.1%2B-tomato.svg)
![iOS 18.0+](https://img.shields.io/badge/iOS-18.0%2B-crimson.svg)
![visionOS 2.0+](https://img.shields.io/badge/visionOS-2.0%2B-magenta.svg)
![macOS 15.0+](https://img.shields.io/badge/macOS-15.0%2B-skyblue.svg)
Expand Down
2 changes: 1 addition & 1 deletion Sources/VimKit/Database+Importer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ extension Database {
/// - modelType: the type of model
private func warmCache(_ modelType: any IndexedPersistentModel.Type) {
guard let table = database.tables[modelType.modelName] else { return }
modelType.warm(table: table, cache: cache)
_ = modelType.warm(table: table, cache: cache)
}

/// Imports models of the specified type into the model container.
Expand Down
1 change: 1 addition & 0 deletions Sources/VimKit/Database+Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ extension IndexedPersistentModel {
/// - table: the database table that contains the raw data
/// - cache: the cache to warm
/// - Returns: the cached objects.
@discardableResult
static func warm(table: Database.Table, cache: Database.ImportCache) -> [Self] {
cache.warm(table)
}
Expand Down