Enumerationgrdb 7.3.0GRDB
DumpTableHeaderOptions
Options for printing table names.
enum DumpTableHeaderOptions
Options for printing table names.
enum DumpTableHeaderOptions
import GRDB
A toolkit for SQLite databases, with a focus on application development
case automatic
Table names are only printed when several tables are printed.
case always
Table names are always printed.
func dumpContent(format: some DumpFormat = .debug(), to stream: (any TextOutputStream)? = nil) throws
Prints the contents of the database.
func dumpRequest(_ request: some FetchRequest, format: some DumpFormat = .debug(), to stream: (any TextOutputStream)? = nil) throws
Prints the results of a request.
func dumpSchema(to stream: (any TextOutputStream)? = nil) throws
Prints the schema of the database.
func dumpSQL(_ sql: SQL, format: some DumpFormat = .debug(), to stream: (any TextOutputStream)? = nil) throws
Prints the results of all statements in the provided SQL.
func dumpTables(_ tables: [String], format: some DumpFormat = .debug(), tableHeader: DumpTableHeaderOptions = .automatic, stableOrder: Bool = false, to stream: (any TextOutputStream)? = nil) throws
Prints the contents of the provided tables and views.
protocol DumpFormat
A type that prints database rows.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.