Skip to content

Commit 3074d99

Browse files
committed
add note on cross-table columnproxy comparisons for future
1 parent f249985 commit 3074d99

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

sew/column.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22

33

44
#%% And also a class for columns
5-
### TODO: Intention for this is to build it into a way to automatically generate conditions in select statements..
5+
"""
6+
TODO: Intention for this is to build it into a way to automatically generate conditions in select statements..
7+
8+
1) Within-table case, ColumnProxy operator (ColumnProxy | str)
9+
This should generate a normal condition.
10+
11+
2) Cross-table case ColumnProxy == ColumnProxy
12+
This should generate an INNER JOIN.
13+
We then need to see how many INNER JOINS there are,
14+
alias the tables uniquely,
15+
and perform the selects using the aliases.
16+
"""
617
class ColumnProxy:
718
"""
819
Class to represent a column in a table.

0 commit comments

Comments
 (0)