Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last insert id support ? #54

Closed
douglarek opened this issue Sep 24, 2016 · 2 comments
Closed

Last insert id support ? #54

douglarek opened this issue Sep 24, 2016 · 2 comments

Comments

@douglarek
Copy link

There does not seem to be a way of getting the record id of the last inserted record(s).

@douglarek douglarek changed the title Last inser id support ? Last insert id support ? Sep 24, 2016
@Tapac
Copy link
Contributor

Tapac commented Sep 24, 2016

Do you try Table.insert{...}.generatedKey or Table.insert{...}[Table.id] ?

@douglarek
Copy link
Author

douglarek commented Sep 24, 2016

@Tapac yeah, but generatedKey or [Table.id] only support Int? not Long? (such as PG's bigint), maybe same need as #31

Tapac added a commit that referenced this issue Sep 24, 2016
#54 Last insert id support ?
Introduced insertAndGetId/insertIgnoreAndGetId on IdTables
@Tapac Tapac closed this as completed Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants