Thanks to visit codestin.com
Credit goes to github.com

Skip to content

InsertResult to return the primary key's type #103

@tyt2y3

Description

@tyt2y3

Currently, the last_insert_id from InsertResult simply uses the ExecResult's last_insert_id.
However, at least for Postgres with returning, we should be able to retrieve the primary key column for the Entity and return the value in its native type. For example, a uuid instead of an i64.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions