Skip to content

Can ORM object attributes be computed by a TextClause at add time #11379

Discussion options

You must be logged in to vote

the text() thing is usually going to work almost anywhere, but for a column expression the literal_column() is more appropriate. but if you have the bound parameters in there, there's not a good pattern for that right now, maybe text(..).columns(Integer).scalar_subquery()

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ArsenArsen
Comment options

@zzzeek
Comment options

@ArsenArsen
Comment options

@zzzeek
Comment options

Answer selected by ArsenArsen
@ArsenArsen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants