Finish the builder, returning a [`RelationDesc`].
(self)
| 1664 | |
| 1665 | /// Finish the builder, returning a [`RelationDesc`]. |
| 1666 | pub fn finish(self) -> RelationDesc { |
| 1667 | let mut desc = RelationDesc::from_names_and_types(self.columns); |
| 1668 | desc.typ = desc.typ.with_keys(self.keys); |
| 1669 | desc |
| 1670 | } |
| 1671 | } |
| 1672 | |
| 1673 | /// Describes a [`RelationDesc`] at a specific version of a [`VersionedRelationDesc`]. |