catena icon indicating copy to clipboard operation
catena copied to clipboard

Support foreign keys

Open pixelspark opened this issue 8 years ago • 0 comments

See SQLite documentation. Most importantly, creation of foreign keys needs to be supported for the CREATE TABLE statement:

CREATE TABLE album(
  albumartist TEXT,
  albumname TEXT,
  albumcover BINARY,
  PRIMARY KEY(albumartist, albumname)
);

CREATE TABLE song(
  songid     INTEGER,
  songartist TEXT,
  songalbum TEXT,
  songname   TEXT,
  FOREIGN KEY(songartist, songalbum) REFERENCES album(albumartist, albumname)
);

pixelspark avatar Nov 13 '17 15:11 pixelspark