🍦 SwiftServe Get

Menu / storage.query-builder

Can Swift packages do type-safe queries?

also known as: query dsl · orm · query interface

Built into the OS — no dependency

Apple frameworkiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
CoreData built in as of Xcode 26.6
Details

NSFetchRequest + NSPredicate typed fetches.

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

not served here · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

SwiftData built in as of Xcode 26.6
Details

Type-safe fetches via FetchDescriptor + #Predicate macros.

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

not served here · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

PackageiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
fluent full menu as of 4.13.0
Details

serves it · confidence 0.90 · as of 4.13.0

serves it · confidence 0.90 · as of 4.13.0

serves it · confidence 0.85 · as of 4.13.0

  • Request.db
    Sources/Fluent/FluentProvider.swift:7
    View the line on GitHub →
    Unconditional decl; no #if condition, no platform gaps in surface digest.
  • QueryBuilder.paginate
    Sources/Fluent/Fluent+Paginate.swift:5
    View the line on GitHub →
    Extension on FluentKit's QueryBuilder DSL; unconditional in surface.
  • Package.swift:9
    View the line on GitHub →
    manifestPlatforms: .watchOS(.v6) floor declared. Server-side framework; watchOS floor exists but practical use there is atypical.

serves it · confidence 0.85 · as of 4.13.0

serves it · confidence 0.75 · as of 4.13.0

  • Request.db
    Sources/Fluent/FluentProvider.swift:7
    View the line on GitHub →
    Unconditional decl; surface digest lists no visionOS gap for any decl. No explicit visionOS manifest floor (inherits default).
  • QueryBuilder.paginate
    Sources/Fluent/Fluent+Paginate.swift:5
    View the line on GitHub →
    Extension on FluentKit's QueryBuilder DSL; unconditional in surface.

serves it · confidence 0.90 · as of 4.13.0

  • Request.db
    Sources/Fluent/FluentProvider.swift:7
    View the line on GitHub →
    Unconditional decl; zero os() conditions in the entire surface, so present on linux. Server-side Vapor package; Linux is the primary deployment target and CI-tested (GitHub Actions test badge in README).
  • QueryBuilder.paginate
    Sources/Fluent/Fluent+Paginate.swift:5
    View the line on GitHub →
    Extension on FluentKit's QueryBuilder DSL; unconditional in surface.
  • Application.db
    Sources/Fluent/FluentProvider.swift:33
    View the line on GitHub →
    Application-level database entry point; unconditional.

serves it · confidence 0.80 · as of 4.13.0

  • Request.db
    Sources/Fluent/FluentProvider.swift:7
    View the line on GitHub →
    Unconditional decl; surface digest lists no macCatalyst gap for any decl. Catalyst inherits the iOS 13 manifest floor.
  • QueryBuilder.paginate
    Sources/Fluent/Fluent+Paginate.swift:5
    View the line on GitHub →
    Extension on FluentKit's QueryBuilder DSL; unconditional in surface.
grdb.swift full menu as of v7.11.1
Details

serves it · confidence 0.90 · as of v7.11.1

serves it · confidence 0.90 · as of v7.11.1

serves it · confidence 0.90 · as of v7.11.1

serves it · confidence 0.90 · as of v7.11.1

serves it · confidence 0.85 · as of v7.11.1

serves it · confidence 0.85 · as of v7.11.1

serves it · confidence 0.85 · as of v7.11.1

sqlite.swift full menu as of 0.16.0
Details

serves it · confidence 0.90 · as of 0.16.0

serves it · confidence 0.90 · as of 0.16.0

serves it · confidence 0.90 · as of 0.16.0

serves it · confidence 0.90 · as of 0.16.0

serves it · confidence 0.90 · as of 0.16.0

serves it · confidence 0.85 · as of 0.16.0

serves it · confidence 0.85 · as of 0.16.0

blackbird as of 0.5
Details

serves it · confidence 0.90 · as of 0.5

  • BlackbirdModelColumnExpression
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:569
    View the line on GitHub →
    Key-path-based WHERE expression type.
  • BlackbirdModelOrderClause
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:52
    View the line on GitHub →
    Key-path-based ORDER BY clause type.
  • BlackbirdModel.read
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:252
    View the line on GitHub →
    Structured read using key-path matching, orderBy, limit.

serves it · confidence 0.90 · as of 0.5

  • BlackbirdModelColumnExpression
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:569
    View the line on GitHub →
    Key-path-based WHERE expression type.
  • BlackbirdModelOrderClause
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:52
    View the line on GitHub →
    Key-path-based ORDER BY clause type.
  • BlackbirdModel.read
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:252
    View the line on GitHub →
    Structured read using key-path matching, orderBy, limit.

serves it · confidence 0.90 · as of 0.5

  • BlackbirdModelColumnExpression
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:569
    View the line on GitHub →
    Key-path-based WHERE expression type.
  • BlackbirdModelOrderClause
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:52
    View the line on GitHub →
    Key-path-based ORDER BY clause type.
  • BlackbirdModel.read
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:252
    View the line on GitHub →
    Structured read using key-path matching, orderBy, limit.

serves it · confidence 0.90 · as of 0.5

  • BlackbirdModelColumnExpression
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:569
    View the line on GitHub →
    Key-path-based WHERE expression type.
  • BlackbirdModelOrderClause
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:52
    View the line on GitHub →
    Key-path-based ORDER BY clause type.
  • BlackbirdModel.read
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:252
    View the line on GitHub →
    Structured read using key-path matching, orderBy, limit.

serves it · confidence 0.80 · as of 0.5

  • BlackbirdModelColumnExpression
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:569
    View the line on GitHub →
    No explicit manifest floor (swift-tools-version 5.7 predates visionOS); symbols are unconditional in the surface digest.
  • BlackbirdModelOrderClause
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:52
    View the line on GitHub →
    Key-path-based ORDER BY clause type.
  • BlackbirdModel.read
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:252
    View the line on GitHub →
    Structured read using key-path matching, orderBy, limit.
?

not verified yet · confidence 0.20 · as of 0.5

  • Package.swift:7
    View the line on GitHub →
    platforms list contains only Apple platforms; Surface digest records no platform gaps, but sources unconditionally import Combine, SwiftUI, OSLog and SQLite3 with no os() guards, and Package.swift declares no Linux support; Linux buildability is unverified. Symbol absence is not absence evidence, so status is unknown.

serves it · confidence 0.80 · as of 0.5

  • BlackbirdModelColumnExpression
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:569
    View the line on GitHub →
    No explicit manifest floor (swift-tools-version 5.7 predates visionOS); symbols are unconditional in the surface digest.
  • BlackbirdModelOrderClause
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:52
    View the line on GitHub →
    Key-path-based ORDER BY clause type.
  • BlackbirdModel.read
    Sources/Blackbird/BlackbirdModelStructuredQuerying.swift:252
    View the line on GitHub →
    Structured read using key-path matching, orderBy, limit.
realm-swift as of v20.0.5
Details

serves it · confidence 0.90 · as of v20.0.5

serves it · confidence 0.90 · as of v20.0.5

serves it · confidence 0.85 · as of v20.0.5

serves it · confidence 0.85 · as of v20.0.5

serves it · confidence 0.75 · as of v20.0.5

  • Query
    RealmSwift/Query.swift:103
    View the line on GitHub →
    Decl unconditional in surface digest (no os() gate) and resolves present on visionOS. Supplementary: build.sh at this tag has dedicated visionOS build/test targets (generic/platform=visionOS, xrsimulator 'Apple Vision Pro'). visionOS is not listed in Package.swift platform floors and README names only iOS/macOS/tvOS/watchOS, hence reduced confidence.
  • Results
    RealmSwift/Results.swift:112
    View the line on GitHub →
  • SortDescriptor
    RealmSwift/SortDescriptor.swift:26
    View the line on GitHub →
?

not verified yet · confidence 0.20 · as of v20.0.5

  • Query
    RealmSwift/Query.swift:103
    View the line on GitHub →
    Surface digest resolves this Swift decl present on linux at parse level, but RealmSwift sits on the Realm ObjC core (215 ObjC files unparsed - declared blind spot); no manifest, README, or CI evidence of Linux builds. Under-claiming as unknown.

serves it · confidence 0.75 · as of v20.0.5

✓ serves it · ◐ with conditions · ✕ not served (proven) · ? not verified yet — hover any verdict for the receipt, click to pin it