Skip to content

Return object full of data when insert #412

Answered by aminalaee
dvrg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dvrg
As far as I know this is the expected behaviour. You need a separate query to select all columns with the returned id.

I think what you want to do is beyond what a driver like databases will do. You need to use an ORM like orm to do that for you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dvrg
Comment options

Answer selected by dvrg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants