mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
1 line
13 KiB
JSON
1 line
13 KiB
JSON
{"seeAlsoSections":[{"title":"Supporting Types","identifiers":["doc:\/\/GRDB\/documentation\/GRDB\/DropFirstCursor","doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor","doc:\/\/GRDB\/documentation\/GRDB\/EnumeratedCursor","doc:\/\/GRDB\/documentation\/GRDB\/FilterCursor","doc:\/\/GRDB\/documentation\/GRDB\/FlattenCursor","doc:\/\/GRDB\/documentation\/GRDB\/MapCursor","doc:\/\/GRDB\/documentation\/GRDB\/PrefixCursor","doc:\/\/GRDB\/documentation\/GRDB\/PrefixWhileCursor"],"generated":true}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"AnyCursor"}],"title":"AnyCursor","roleHeading":"Class","role":"symbol","symbolKind":"class","externalID":"s:4GRDB9AnyCursorC","modules":[{"name":"GRDB"}],"navigatorTitle":[{"kind":"identifier","text":"AnyCursor"}]},"abstract":[{"type":"text","text":"A type-erased cursor."}],"sections":[],"identifier":{"url":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor","interfaceLanguage":"swift"},"relationshipsSections":[{"identifiers":["doc:\/\/GRDB\/documentation\/GRDB\/Cursor"],"kind":"relationships","title":"Conforms To","type":"conformsTo"}],"hierarchy":{"paths":[["doc:\/\/GRDB\/documentation\/GRDB","doc:\/\/GRDB\/documentation\/GRDB\/SQLSupport","doc:\/\/GRDB\/documentation\/GRDB\/Cursor"]]},"topicSections":[{"title":"Initializers","identifiers":["doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/init(_:)-1bah0","doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/init(_:)-1ryro","doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/init(_:)-sxgi","doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/init(iterator:)"]},{"title":"Instance Methods","identifiers":["doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/next()"]},{"title":"Default Implementations","identifiers":["doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/Cursor-Implementations"],"generated":true}],"variants":[{"paths":["\/documentation\/grdb\/anycursor"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"final"},{"kind":"text","text":" "},{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"AnyCursor"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"Element"},{"kind":"text","text":">"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"content","content":[{"anchor":"overview","level":2,"type":"heading","text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"An instance of "},{"type":"codeVoice","code":"AnyCursor"},{"type":"text","text":" forwards its operations to an underlying base"},{"type":"text","text":" "},{"type":"text","text":"cursor having the same "},{"type":"codeVoice","code":"Element"},{"type":"text","text":" type, hiding the specifics of the"},{"type":"text","text":" "},{"type":"text","text":"underlying cursor."}]}]}],"references":{"doc://GRDB/documentation/GRDB/AnyCursor/Cursor-Implementations":{"role":"collectionGroup","title":"Cursor Implementations","abstract":[],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/Cursor-Implementations","kind":"article","type":"topic","url":"\/documentation\/grdb\/anycursor\/cursor-implementations"},"doc://GRDB/documentation/GRDB/FlattenCursor":{"role":"symbol","title":"FlattenCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"FlattenCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" consisting of all the elements contained in each segment"},{"type":"text","text":" "},{"type":"text","text":"contained in some "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" cursor."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/FlattenCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"FlattenCursor"}],"url":"\/documentation\/grdb\/flattencursor"},"doc://GRDB/documentation/GRDB/EnumeratedCursor":{"role":"symbol","title":"EnumeratedCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"EnumeratedCursor"}],"abstract":[{"type":"text","text":"An enumeration of the elements of a cursor."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/EnumeratedCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"EnumeratedCursor"}],"url":"\/documentation\/grdb\/enumeratedcursor"},"doc://GRDB/documentation/GRDB/AnyCursor/init(_:)-1ryro":{"role":"symbol","title":"init(_:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"C"},{"kind":"text","text":">("},{"kind":"typeIdentifier","text":"C"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Creates a new cursor that wraps and forwards operations to "},{"type":"codeVoice","code":"base"},{"type":"text","text":"."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/init(_:)-1ryro","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/anycursor\/init(_:)-1ryro"},"doc://GRDB/documentation/GRDB/SQLSupport":{"role":"collectionGroup","title":"SQL, Prepared Statements, Rows, and Values","abstract":[{"type":"text","text":"SQL is the fundamental language for accessing SQLite databases."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SQLSupport","kind":"article","type":"topic","url":"\/documentation\/grdb\/sqlsupport"},"doc://GRDB/documentation/GRDB/PrefixCursor":{"role":"symbol","title":"PrefixCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrefixCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" that only consumes up to "},{"type":"codeVoice","code":"n"},{"type":"text","text":" elements from an underlying"},{"type":"text","text":" "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" cursor."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/PrefixCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrefixCursor"}],"url":"\/documentation\/grdb\/prefixcursor"},"doc://GRDB/documentation/GRDB/MapCursor":{"role":"symbol","title":"MapCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"MapCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" whose elements consist of those in a "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" cursor passed through"},{"type":"text","text":" "},{"type":"text","text":"a transform function returning Element."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/MapCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"MapCursor"}],"url":"\/documentation\/grdb\/mapcursor"},"doc://GRDB/documentation/GRDB/Cursor":{"role":"symbol","title":"Cursor","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Cursor"}],"abstract":[{"type":"text","text":"A type that supplies the values of some external resource, one at a time."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/Cursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Cursor"}],"url":"\/documentation\/grdb\/cursor"},"doc://GRDB/documentation/GRDB/AnyCursor/init(_:)-sxgi":{"role":"symbol","title":"init(_:)","fragments":[{"kind":"keyword","text":"convenience"},{"kind":"text","text":" "},{"kind":"identifier","text":"init"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"S"},{"kind":"text","text":">("},{"kind":"typeIdentifier","text":"S"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Creates a new cursor whose elements are elements of "},{"type":"codeVoice","code":"sequence"},{"type":"text","text":"."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/init(_:)-sxgi","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/anycursor\/init(_:)-sxgi"},"doc://GRDB/documentation/GRDB/DropWhileCursor":{"role":"symbol","title":"DropWhileCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"DropWhileCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" whose elements consist of the elements that follow the initial"},{"type":"text","text":" "},{"type":"text","text":"consecutive elements of some "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" cursor that satisfy a given predicate."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"DropWhileCursor"}],"url":"\/documentation\/grdb\/dropwhilecursor"},"doc://GRDB/documentation/GRDB/AnyCursor/init(iterator:)":{"role":"symbol","title":"init(iterator:)","fragments":[{"kind":"keyword","text":"convenience"},{"kind":"text","text":" "},{"kind":"identifier","text":"init"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"I"},{"kind":"text","text":">("},{"kind":"externalParam","text":"iterator"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"I"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Creates a new cursor whose elements are elements of "},{"type":"codeVoice","code":"iterator"},{"type":"text","text":"."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/init(iterator:)","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/anycursor\/init(iterator:)"},"doc://GRDB/documentation/GRDB/FilterCursor":{"role":"symbol","title":"FilterCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"FilterCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" whose elements consist of the elements of some "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" cursor that"},{"type":"text","text":" "},{"type":"text","text":"also satisfy a given predicate."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/FilterCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"FilterCursor"}],"url":"\/documentation\/grdb\/filtercursor"},"doc://GRDB/documentation/GRDB/AnyCursor/next()":{"role":"symbol","title":"next()","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"next"},{"kind":"text","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Element"},{"kind":"text","text":"?"}],"abstract":[],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/next()","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/anycursor\/next()"},"doc://GRDB/documentation/GRDB/AnyCursor/init(_:)-1bah0":{"role":"symbol","title":"init(_:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"(() "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Element"},{"kind":"text","text":"?)"}],"abstract":[{"type":"text","text":"Creates a cursor that wraps the given closure in its "},{"type":"reference","isActive":true,"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/next()"},{"type":"text","text":" method."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor\/init(_:)-1bah0","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/anycursor\/init(_:)-1bah0"},"doc://GRDB/documentation/GRDB/DropFirstCursor":{"role":"symbol","title":"DropFirstCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"DropFirstCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" that consumes and drops n elements from an underlying "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" "},{"type":"text","text":"cursor before possibly returning the first available element."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropFirstCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"DropFirstCursor"}],"url":"\/documentation\/grdb\/dropfirstcursor"},"doc://GRDB/documentation/GRDB/AnyCursor":{"role":"symbol","title":"AnyCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"AnyCursor"}],"abstract":[{"type":"text","text":"A type-erased cursor."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/AnyCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"AnyCursor"}],"url":"\/documentation\/grdb\/anycursor"},"doc://GRDB/documentation/GRDB/PrefixWhileCursor":{"role":"symbol","title":"PrefixWhileCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrefixWhileCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" whose elements consist of the initial consecutive elements of"},{"type":"text","text":" "},{"type":"text","text":"some "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" cursor that satisfy a given predicate."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/PrefixWhileCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrefixWhileCursor"}],"url":"\/documentation\/grdb\/prefixwhilecursor"},"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"}}} |