Catch error for orm
#15865
Replies: 1 comment 4 replies
-
sql db {
insert new_customer into Customer
} or {
eprintln(err)
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I catch an error happens in the statement below?
the insert statement may fail due to duplicate key etc but there seems no way to catch this error?
sql db {
insert new_customer into Customer
}
Beta Was this translation helpful? Give feedback.
All reactions