mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
1 line
5.4 KiB
JSON
1 line
5.4 KiB
JSON
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"databaseJSONDecoder"},{"kind":"text","text":"("},{"kind":"externalParam","text":"for"},{"kind":"text","text":" "},{"kind":"internalParam","text":"column"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"JSONDecoder","preciseIdentifier":"s:10Foundation11JSONDecoderC"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The default implementation returns a "},{"type":"codeVoice","code":"JSONDecoder"},{"type":"text","text":" with the"},{"type":"text","text":" "},{"type":"text","text":"following properties:"}]},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"codeVoice","code":"dataDecodingStrategy"},{"type":"text","text":": "},{"type":"codeVoice","code":".base64"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"codeVoice","code":"dateDecodingStrategy"},{"type":"text","text":": "},{"type":"codeVoice","code":".millisecondsSince1970"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"codeVoice","code":"nonConformingFloatDecodingStrategy"},{"type":"text","text":": "},{"type":"codeVoice","code":".throw"}]}]}]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/grdb\/columninfo\/databasejsondecoder(for:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/GRDB\/documentation\/GRDB\/ColumnInfo\/databaseJSONDecoder(for:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Returns the "},{"type":"codeVoice","code":"JSONDecoder"},{"type":"text","text":" that decodes the value for a given column."}],"kind":"symbol","metadata":{"role":"symbol","title":"databaseJSONDecoder(for:)","roleHeading":"Type Method","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"databaseJSONDecoder"},{"kind":"text","text":"("},{"kind":"externalParam","text":"for"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"JSONDecoder","preciseIdentifier":"s:10Foundation11JSONDecoderC"}],"symbolKind":"method","externalID":"s:4GRDB15FetchableRecordPAAE19databaseJSONDecoder3for10Foundation0E0CSS_tFZ::SYNTHESIZED::s:4GRDB10ColumnInfoV","extendedModule":"GRDB","modules":[{"name":"GRDB"}]},"hierarchy":{"paths":[["doc:\/\/GRDB\/documentation\/GRDB","doc:\/\/GRDB\/documentation\/GRDB\/DatabaseSchema","doc:\/\/GRDB\/documentation\/GRDB\/ColumnInfo","doc:\/\/GRDB\/documentation\/GRDB\/ColumnInfo\/FetchableRecord-Implementations"]]},"references":{"doc://GRDB/documentation/GRDB/ColumnInfo/databaseJSONDecoder(for:)":{"role":"symbol","title":"databaseJSONDecoder(for:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"databaseJSONDecoder"},{"kind":"text","text":"("},{"kind":"externalParam","text":"for"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"JSONDecoder","preciseIdentifier":"s:10Foundation11JSONDecoderC"}],"abstract":[{"type":"text","text":"Returns the "},{"type":"codeVoice","code":"JSONDecoder"},{"type":"text","text":" that decodes the value for a given column."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/ColumnInfo\/databaseJSONDecoder(for:)","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/columninfo\/databasejsondecoder(for:)"},"doc://GRDB/documentation/GRDB/ColumnInfo":{"role":"symbol","title":"ColumnInfo","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ColumnInfo"}],"abstract":[{"type":"text","text":"Information about a column of a database table."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/ColumnInfo","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"ColumnInfo"}],"url":"\/documentation\/grdb\/columninfo"},"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/ColumnInfo/FetchableRecord-Implementations":{"role":"collectionGroup","title":"FetchableRecord Implementations","abstract":[],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/ColumnInfo\/FetchableRecord-Implementations","kind":"article","type":"topic","url":"\/documentation\/grdb\/columninfo\/fetchablerecord-implementations"},"doc://GRDB/documentation/GRDB/DatabaseSchema":{"role":"collectionGroup","title":"The Database Schema","abstract":[{"type":"text","text":"Learn how to define the database schema."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DatabaseSchema","kind":"article","type":"topic","url":"\/documentation\/grdb\/databaseschema"}}} |