1module RelationTupleSet where
5import qualified Data.Map as M
6import qualified Data.HashSet as HS
9emptyTupleSet = HS.empty
10emptyAttributeSet = M.empty
12--ensure that all maps have the same keys and key count
14verifyRelationTupleSet :: Attributes -> RelationTupleSet -> Either RelationalError RelationTupleSet
15verifyRelationTupleSet attrs tupleSet = do
16 --check that all tuples have the same types
17 tupleList <- forM (HS.toList tupleSet) verifyTuple
18 return $ HS.fromList tupleList
20 verifyTuple tuple = if tupleAttributes tuple == attrs then
23 Left $ TupleAttributeTypeMismatchError 0
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list