Attribute
public struct Attribute
A key used to describe Relation schemes and map keys to values in Row.
Note: Attribute is implemented internally using interned strings. This
means that two equal Attributes always have the same storage. This cuts
down on storage overhead and allows equality to be implemented as pointer
equality. However, the interned strings cannot be destroyed when no longer
in use. Because of this, a program must not created an unlimited number of
distinct Attributes.
-
The underlying interned string representing the
Attribute.Declaration
Swift
public var internedName: InternedUTF8String -
The
Stringname of thisAttribute.Declaration
Swift
public var name: String { get } -
Create a new
Attributefrom an interned string.Declaration
Swift
public init(_ internedName: InternedUTF8String) -
Create a new
Attributefrom a string.Declaration
Swift
public init(_ name: String)
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public init(extendedGraphemeClusterLiteral value: String) -
Declaration
Swift
public init(unicodeScalarLiteral value: String) -
Declaration
Swift
public init(stringLiteral value: String)
-
Declaration
Swift
public func valueWithRow(_ row: Row) -> RelationValue
Attribute Structure Reference