Skip to content

Initializer

init(_:table:)

Create an SQLColumn from a name and optional table name.
init(_ name: String, table: String? = nil)

Discussion

A column name of * is treated as SQLLiteral.all rather than as an identifier. To specify a column whose actual name consists of a sole asterisk (probably not a good idea to have one of those in the first place), use init(_:table:) and SQLIdentifier("*").