Skip to content

about save method and model's id #264

Description

@class4cxy

hi :

my question is after i call the model.save() method, how can i get the current model's id ? and mysql db is design to auto_increment.
i was try to use "SELECT LAST_INSERT_ID() as id FROM " after save's callback, but it dosen't suit when concurrent request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions