@@ -380,6 +380,8 @@ instance KnownSymbol alias => RenderSQL (Alias alias) where renderSQL = renderAl
380380renderAlias :: KnownSymbol alias => Alias alias -> ByteString
381381renderAlias = doubleQuoted . fromString . symbolVal
382382
383+-- | >>> renderAliasString #ohmahgerd
384+-- "'ohmahgerd'"
383385renderAliasString :: KnownSymbol alias => Alias alias -> ByteString
384386renderAliasString = singleQuotedText . fromString . symbolVal
385387
@@ -616,11 +618,12 @@ type family NullifyRelations (tables :: RelationsType) :: RelationsType where
616618 NullifyRelations (table ::: columns ': tables) =
617619 table ::: NullifyRelation columns ': NullifyRelations tables
618620
619−-- | 'RelationToRowType' drops the nullity constraints of its argument relations.
621+-- | `RelationToRowType` drops the nullity constraints of its argument relations.
620622type family RelationToRowType (tables :: RelationType) :: [(Symbol, PGType)] where
621623 RelationToRowType (nullity x : xs) = x : RelationToRowType xs
622624 RelationToRowType '[] = '[]
623625
626+-- | `RelationToNullityTypes` drops the column constraints.
624627type family RelationToNullityTypes (rel :: RelationType) :: [NullityType] where
625628 RelationToNullityTypes ('(k, x) : xs) = x : RelationToNullityTypes xs
626629 RelationToNullityTypes '[] = '[]