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 String name of this Attribute.

    Declaration

    Swift

    public var name: String { get }
  • Create a new Attribute from an interned string.

    Declaration

    Swift

    public init(_ internedName: InternedUTF8String)
  • Create a new Attribute from a string.

    Declaration

    Swift

    public init(_ name: String)
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Declaration

    Swift

    public var description: String { get }