should add a ‘exist’ method #590

Closed
opened 2017-05-26 03:17:02 +00:00 by vlorc · 2 comments
vlorc commented 2017-05-26 03:17:02 +00:00 (Migrated from github.com)

has,_ = session.Get(&info) check has exists,but 'Get ' need backfill
we need a not backfill data
such like session.Exist(&info{Id:1})

has,_ = session.Get(&info) check has exists,but 'Get ' need backfill we need a not backfill data such like session.Exist(&info{Id:1})

You can use

has, err := session.Get(&Info{Id:1})
You can use ```Go has, err := session.Get(&Info{Id:1}) ```

resolved by #640

resolved by #640
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#590
No description provided.