diff options
author | Jasper Ras <jras@hostnet.nl> | 2024-11-23 11:30:28 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2024-11-23 11:30:28 +0100 |
commit | 1f1423fdb8d4e2928768ffa33a6ad2b59c75e82e (patch) | |
tree | 67d94f0d821a053aca0e7c8a7ffb6c369047aa14 /zettelkast/Notes/060620241559 - Adjacency Lists.md | |
parent | 93d36010a9d54bca1fdcaf1f4c99e6981aaf41bc (diff) |
lowercase dirs
Diffstat (limited to 'zettelkast/Notes/060620241559 - Adjacency Lists.md')
-rw-r--r-- | zettelkast/Notes/060620241559 - Adjacency Lists.md | 3 |
1 files changed, 3 insertions, 0 deletions
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 |