Ticket #366 (new task)

Opened 3 years ago

Last modified 3 years ago

Support uniqueness constraints

Reported by: logan@vt.edu Assigned to: glyph
Priority: lowest Milestone:
Component: Axiom Severity: normal
Keywords: Cc:
Author: Branch:

Description

Add a "unique" keyword argument to attribute constructors, and use this information to enforce uniqueness constraints in the database.

class Table:
  x = attributes.integer(unique=True)

Attachments

axiom-unique-attribute.patch (3.0 kB) - added by ironfroggy on 01/08/06 00:17:22.
Patch to implement this request for a unique constraint. Compares values of non-reference attributes and compares identity of reference attributes.

Change History

11/18/05 09:48:24 changed by amir

  • owner changed from amir to glyph.

11/21/05 09:23:24 changed by moe

  • type changed from defect to task.

11/25/05 17:47:01 changed by glyph

  • priority changed from normal to lowest.

01/08/06 00:17:22 changed by ironfroggy

  • attachment axiom-unique-attribute.patch added.

Patch to implement this request for a unique constraint. Compares values of non-reference attributes and compares identity of reference attributes.

jethro@divmod.org