ForeignKeyInfo
public struct ForeignKeyInfo
You get foreign keys from table names, with the
foreignKeys(on:)
method.
-
The name of the destination table
Declaration
Swift
public let destinationTable: String
-
The column to column mapping
Declaration
Swift
public let mapping: [(origin: String, destination: String)]
-
The origin columns
Declaration
Swift
public var originColumns: [String] { get }
-
The destination columns
Declaration
Swift
public var destinationColumns: [String] { get }