Structuregrdb 7.2.0GRDB
ForeignKeyInfo
Information about a foreign key.
struct ForeignKeyInfo
You get ForeignKeyInfo
instances with the foreignKeys(on:in:)
Database
method.
Related SQLite documentation: pragma foreign_key_list
.
Information about a foreign key.
struct ForeignKeyInfo
You get ForeignKeyInfo
instances with the foreignKeys(on:in:)
Database
method.
Related SQLite documentation: pragma foreign_key_list
.
import GRDB
A toolkit for SQLite databases, with a focus on application development
func foreignKeys(on tableName: String, in schemaName: String? = nil) throws -> [ForeignKeyInfo]
Returns the foreign keys defined on table named tableName
.
struct ColumnInfo
Information about a column of a database table.
struct IndexInfo
Information about an index.
struct PrimaryKeyInfo
Information about a primary key.
protocol Sendable
var destinationColumns: [String] { get }
The destination columns.
let destinationTable: String
The name of the destination table.
var id: Int
The first column in the output of the foreign_key_list
pragma.
let mapping: [(origin: String, destination: String)]
The column to column mapping.
var originColumns: [String] { get }
The origin columns.