setValue(_:forPragmaNamed:)
Allows you to set pragmas for the SQLite store.
Declaration
func setValue(_ value: NSObject?, forPragmaNamed name: String)Parameters
- value:
The value of the pragma to be set.
- name:
The name of the pragma to be set.
Discussion
Pragma options are for SQLite stores only. All pragma values must be specified as NSStringobjects. The fullfsync and synchronous pragmas control the tradeoff between write performance (write to disk speed and cache utilization) and durability (data loss/corruption sensitivity to power interruption). For more information on pragma settings, see http://sqlite.org/pragma.html.