mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
1 line
5.5 KiB
JSON
1 line
5.5 KiB
JSON
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"whileObserved"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Database errors can be recovered by resubscribing to the"},{"type":"text","text":" "},{"type":"text","text":"shared observation."}]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/grdb\/sharedvalueobservationextent\/whileobserved"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent\/whileObserved","interfaceLanguage":"swift"},"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."}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"whileObserved"}],"title":"SharedValueObservationExtent.whileObserved","roleHeading":"Case","role":"symbol","symbolKind":"case","externalID":"s:4GRDB28SharedValueObservationExtentO13whileObservedyA2CmF","modules":[{"name":"GRDB"}]},"hierarchy":{"paths":[["doc:\/\/GRDB\/documentation\/GRDB","doc:\/\/GRDB\/documentation\/GRDB\/DatabaseObservation","doc:\/\/GRDB\/documentation\/GRDB\/ValueObservation","doc:\/\/GRDB\/documentation\/GRDB\/SharedValueObservationExtent"]]},"references":{"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/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/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":{"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"},"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/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"}}} |