session.exec does not support delete statements #821
-
First Check
Commit to Help
Example Codefrom sqlmodel import (col, delete)
from common.models import LibrarySoundNFTLink
delete_stmt = delete(LibrarySoundNFTLink).where(
col(LibrarySoundNFTLink.library_user_address) == address
)
session.exec(delete_stmt) Descriptionsession.exec complains when executing a delete operation with the following error
I hear I should use Operating SystemLinux Operating System DetailsNo response SQLModel Version0.0.14 Python Version3.12 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I get the same, this seems like an issue instead of a question :-p |
Beta Was this translation helpful? Give feedback.
-
Yeah what's going on here? |
Beta Was this translation helpful? Give feedback.
-
Still doesn't work |
Beta Was this translation helpful? Give feedback.
Appears to have a issue 909 ticket open.