SwiftstructShazamKit

struct ShazamKit.SHLibrary.Query

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 10

  1. funcstatic allItems<A where A: Collection, A.Element == Foundation.UUID>(identifiedBy: A) -> ShazamKit.SHLibrary.Query
  2. funcstatic allItems(matching: Foundation.Predicate<Pack{SHMediaItem}>) -> ShazamKit.SHLibrary.Query
  3. funcstatic item(with: Foundation.UUID) -> ShazamKit.SHLibrary.Query
  4. varstatic var allItems: ShazamKit.SHLibrary.Query { get }
  5. fieldvar fetchLimit: Int
  6. fieldlet predicate: Foundation.Predicate<Pack{SHMediaItem}>?
  7. fieldvar sortDescriptors: [ShazamKit.SHLibrary.Query.SortDescriptor]
  8. funclimit(Int) -> ShazamKit.SHLibrary.Query
  9. funcsorted<A where A: Comparable>(by: KeyPath<SHMediaItem, A> & Sendable, _: Foundation.SortOrder) -> ShazamKit.SHLibrary.Query
  10. funcsorted<A where A: Comparable>(by: KeyPath<SHMediaItem, A?> & Sendable, _: Foundation.SortOrder) -> ShazamKit.SHLibrary.Query
struct ShazamKit.SHLibrary.Query {
    struct SortDescriptor {
        let keyPath: Swift.PartialKeyPath<__C.SHMediaItem>
        let order: Foundation.SortOrder
    }
    let predicate: Foundation.Predicate<__C.SHMediaItem>?
    var sortDescriptors: [ShazamKit.SHLibrary.Query.SortDescriptor]
    var fetchLimit: Swift.Int

    func limit(_: Swift.Int) -> ShazamKit.SHLibrary.Query
    func sorted<A>(by: any Swift.KeyPath<__C.SHMediaItem, A> & Swift.Sendable, _: Foundation.SortOrder) -> ShazamKit.SHLibrary.Query where A: Swift.Comparable
    func sorted<A>(by: any Swift.KeyPath<__C.SHMediaItem, A?> & Swift.Sendable, _: Foundation.SortOrder) -> ShazamKit.SHLibrary.Query where A: Swift.Comparable

    static var allItems: ShazamKit.SHLibrary.Query {
        get
    }

    static func item(with: Foundation.UUID) -> ShazamKit.SHLibrary.Query
    static func allItems<A>(identifiedBy: A) -> ShazamKit.SHLibrary.Query where A: Swift.Collection, A.Element == Foundation.UUID
    static func allItems(matching: Foundation.Predicate<__C.SHMediaItem>) -> ShazamKit.SHLibrary.Query
}