ColumnType
public struct ColumnType : RawRepresentable, Hashable
An SQL column type.
try db.create(table: "players") { t in
t.column("id", .integer).primaryKey()
t.column("title", .text)
}
-
Declaration
Swift
public let rawValue: String -
Declaration
Swift
public init(rawValue: String) -
Undocumented
Declaration
Swift
public init(_ rawValue: String) -
The hash value
Declaration
Swift
public var hashValue: Int -
The
TEXTSQL column typeDeclaration
Swift
public static let text = ColumnType("TEXT") -
The
INTEGERSQL column typeDeclaration
Swift
public static let integer = ColumnType("INTEGER") -
The
DOUBLESQL column typeDeclaration
Swift
public static let double = ColumnType("DOUBLE") -
The
NUMERICSQL column typeDeclaration
Swift
public static let numeric = ColumnType("NUMERIC") -
The
BOOLEANSQL column typeDeclaration
Swift
public static let boolean = ColumnType("BOOLEAN") -
The
BLOBSQL column typeDeclaration
Swift
public static let blob = ColumnType("BLOB") -
The
DATESQL column typeDeclaration
Swift
public static let date = ColumnType("DATE") -
The
DATETIMESQL column typeDeclaration
Swift
public static let datetime = ColumnType("DATETIME")
View on GitHub
Install in Dash
ColumnType Structure Reference