Commit 9e4a141
Varun Chawla
Add missing exports for try_cast, bitwise_not, and label
These functions were defined in sqlmodel/sql/expression.py but not exported
in sqlmodel/__init__.py, making them inaccessible to users.
Added exports for:
- try_cast: SQL TRY_CAST operation for safe type casting
- bitwise_not: Bitwise NOT operation
- label: Create labeled expressions
This makes the API more complete and consistent with SQLAlchemy's functionality.1 parent b707f49 commit 9e4a141
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
0 commit comments