Static Methodgrdb 7.2.0GRDB

debug(header:separator:nullValue:)

A format that prints one line per database row, suitable for debugging.

DebugDumpFormat.swift:154
static func debug(header: Bool = false, separator: String = "|", nullValue: String = "") -> Self

Parameters

header

A boolean value indicating if column labels are printed as the first line of output.

separator

The separator between values.

nullValue

The string to print for NULL values.

This format may change in future releases. It is not suitable for processing by other programs, or testing.

On each line, database values are separated by a separator (| by default).

For example:

// Arthur|500
// Barbara|1000
// Craig|200
try db.dumpRequest(Player.all(), format: .debug())