mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
1 line
9.2 KiB
JSON
1 line
9.2 KiB
JSON
{"seeAlsoSections":[{"title":"Creating A Shared Observation","identifiers":["doc:\/\/GRDB\/documentation\/GRDB\/ValueObservation\/shared(in:scheduling:extent:)"],"generated":true}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"SharedValueObservationExtent"}],"title":"SharedValueObservationExtent","roleHeading":"Enumeration","role":"symbol","symbolKind":"enum","externalID":"s:4GRDB28SharedValueObservationExtentO","modules":[{"name":"GRDB"}],"navigatorTitle":[{"kind":"identifier","text":"SharedValueObservationExtent"}]},"abstract":[{"type":"text","text":"The extent of the shared subscription to a "},{"type":"reference","isActive":true,"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservation"},{"type":"text","text":"."}],"sections":[],"identifier":{"url":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent","interfaceLanguage":"swift"},"relationshipsSections":[{"identifiers":["doc:\/\/GRDB\/SQ","doc:\/\/GRDB\/SH"],"kind":"relationships","title":"Conforms To","type":"conformsTo"}],"hierarchy":{"paths":[["doc:\/\/GRDB\/documentation\/GRDB","doc:\/\/GRDB\/documentation\/GRDB\/DatabaseObservation","doc:\/\/GRDB\/documentation\/GRDB\/ValueObservation"]]},"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent\/observationLifetime","doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent\/whileObserved"]},{"title":"Default Implementations","identifiers":["doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent\/Equatable-Implementations"],"generated":true}],"variants":[{"paths":["\/documentation\/grdb\/sharedvalueobservationextent"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"SharedValueObservationExtent"}],"languages":["swift"],"platforms":["macOS"]}]}],"references":{"doc://GRDB/documentation/GRDB/ValueObservation/shared(in:scheduling:extent:)":{"conformance":{"constraints":[{"type":"codeVoice","code":"Reducer"},{"type":"text","text":" conforms to "},{"type":"codeVoice","code":"_ValueReducer"},{"type":"text","text":"."}],"availabilityPrefix":[{"type":"text","text":"Available when"}],"conformancePrefix":[{"type":"text","text":"Conforms when"}]},"role":"symbol","title":"shared(in:scheduling:extent:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"shared"},{"kind":"text","text":"("},{"kind":"externalParam","text":"in"},{"kind":"text","text":": some "},{"kind":"typeIdentifier","text":"DatabaseReader","preciseIdentifier":"s:4GRDB14DatabaseReaderP"},{"kind":"text","text":", "},{"kind":"externalParam","text":"scheduling"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ValueObservationScheduler","preciseIdentifier":"s:4GRDB25ValueObservationSchedulerC"},{"kind":"text","text":", "},{"kind":"externalParam","text":"extent"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"SharedValueObservationExtent","preciseIdentifier":"s:4GRDB28SharedValueObservationExtentO"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"SharedValueObservation","preciseIdentifier":"s:4GRDB22SharedValueObservationC"},{"kind":"text","text":"<"},{"kind":"typeIdentifier","text":"Reducer"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Value"},{"kind":"text","text":">"}],"abstract":[{"type":"text","text":"Returns a shared value observation that spares database resources by"},{"type":"text","text":" "},{"type":"text","text":"sharing a single underlying "},{"type":"reference","isActive":true,"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/ValueObservation"},{"type":"text","text":" subscription."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/ValueObservation\/shared(in:scheduling:extent:)","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/valueobservation\/shared(in:scheduling:extent:)"},"doc://GRDB/documentation/GRDB/DatabaseObservation":{"role":"collectionGroup","title":"Database Observation","abstract":[{"type":"text","text":"Observe database changes and transactions."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DatabaseObservation","kind":"article","type":"topic","url":"\/documentation\/grdb\/databaseobservation"},"doc://GRDB/documentation/GRDB/SharedValueObservationExtent/whileObserved":{"role":"symbol","title":"SharedValueObservationExtent.whileObserved","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"whileObserved"}],"abstract":[{"type":"text","text":"The "},{"type":"reference","isActive":true,"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservation"},{"type":"text","text":" stops database observation when the"},{"type":"text","text":" "},{"type":"text","text":"number of subscriptions drops down to zero. Database observation"},{"type":"text","text":" "},{"type":"text","text":"restarts on the next subscription."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent\/whileObserved","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/sharedvalueobservationextent\/whileobserved"},"doc://GRDB/documentation/GRDB/SharedValueObservationExtent/Equatable-Implementations":{"role":"collectionGroup","title":"Equatable Implementations","abstract":[],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent\/Equatable-Implementations","kind":"article","type":"topic","url":"\/documentation\/grdb\/sharedvalueobservationextent\/equatable-implementations"},"doc://GRDB/documentation/GRDB/ValueObservation":{"role":"symbol","title":"ValueObservation","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ValueObservation"}],"abstract":[{"type":"codeVoice","code":"ValueObservation"},{"type":"text","text":" tracks changes in the results of database requests, and"},{"type":"text","text":" "},{"type":"text","text":"notifies fresh values whenever the database changes."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/ValueObservation","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"ValueObservation"}],"url":"\/documentation\/grdb\/valueobservation"},"doc://GRDB/documentation/GRDB/SharedValueObservationExtent/observationLifetime":{"role":"symbol","title":"SharedValueObservationExtent.observationLifetime","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"observationLifetime"}],"abstract":[{"type":"text","text":"The "},{"type":"reference","isActive":true,"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservation"},{"type":"text","text":" starts a single database observation,"},{"type":"text","text":" "},{"type":"text","text":"which stops when the "},{"type":"codeVoice","code":"SharedValueObservation"},{"type":"text","text":" is deallocated and all"},{"type":"text","text":" "},{"type":"text","text":"subscriptions terminated."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent\/observationLifetime","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/sharedvalueobservationextent\/observationlifetime"},"doc://GRDB/documentation/GRDB/SharedValueObservation":{"role":"symbol","title":"SharedValueObservation","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"SharedValueObservation"}],"abstract":[{"type":"text","text":"A shared value observation spares database resources by sharing a single"},{"type":"text","text":" "},{"type":"text","text":"underlying "},{"type":"reference","isActive":true,"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/ValueObservation"},{"type":"text","text":" subscription."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservation","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"SharedValueObservation"}],"url":"\/documentation\/grdb\/sharedvalueobservation"},"doc://GRDB/SH":{"type":"unresolvable","title":"Swift.Hashable","identifier":"doc:\/\/GRDB\/SH"},"doc://GRDB/SQ":{"type":"unresolvable","title":"Swift.Equatable","identifier":"doc:\/\/GRDB\/SQ"},"doc://GRDB/documentation/GRDB/SharedValueObservationExtent":{"role":"symbol","title":"SharedValueObservationExtent","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"SharedValueObservationExtent"}],"abstract":[{"type":"text","text":"The extent of the shared subscription to a "},{"type":"reference","isActive":true,"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservation"},{"type":"text","text":"."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"SharedValueObservationExtent"}],"url":"\/documentation\/grdb\/sharedvalueobservationextent"},"doc://GRDB/documentation/GRDB":{"role":"collection","title":"GRDB","abstract":[{"type":"text","text":"A toolkit for SQLite databases, with a focus on application development"}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB","kind":"symbol","type":"topic","url":"\/documentation\/grdb"}}} |