From 1f1423fdb8d4e2928768ffa33a6ad2b59c75e82e Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Sat, 23 Nov 2024 11:30:28 +0100 Subject: lowercase dirs --- zettelkast/Notes/060620241559 - Adjacency Lists.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 zettelkast/Notes/060620241559 - Adjacency Lists.md (limited to 'zettelkast/Notes/060620241559 - Adjacency Lists.md') diff --git a/zettelkast/Notes/060620241559 - Adjacency Lists.md b/zettelkast/Notes/060620241559 - Adjacency Lists.md new file mode 100644 index 0000000..c2e9003 --- /dev/null +++ b/zettelkast/Notes/060620241559 - Adjacency Lists.md @@ -0,0 +1,3 @@ +Adjacency list is a self-referential relationship. In SQLAlchemy we can achieve this by creating a ForeignKey on the table to itself. In the mapper we can add a relationship property and specify remote_side=[table.c.id]. + +This is what I used to give backups a "base" reference. \ No newline at end of file -- cgit v1.2.3