Skip to content

Glossary: Building APIs with Node.js

UNIQUE constraint

Also written: UNIQUE constraint failed, errcode 1555

A database rule that no two rows share a value, such as a primary key. Breaking it makes SQLite throw an error (`errcode` 1555), which kc-api turns into a 409.

Where the book teaches it

Related terms

Primary key