Skip to content

Tables whose primary keys have zero attributes #113

@dimitri-yatsenko

Description

@dimitri-yatsenko

Currently datajoint prohibits creating tables with no attributes in the primary key. We can relax this prohibition.

If the primary key has no attributes, it can only have one value. Therefore, the relation can only contain one tuple. So it's good for relations that contain a single fact about the universe rather than a collection of similar facts. The relational algebra using such relations remains identical to what it is now. In particular, joining two relations with no primary key produces another relation with no primary key and one tuple.

Metadata

Metadata

Labels

enhancementIndicates new improvementsstaleIndicates issues, pull requests, or discussions are inactivetriageIndicates issues, pull requests, or discussions need to be reviewed for the first time

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions