chore: Bump ent to 0.11.2 (#2640)
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package db
|
||||
|
||||
@@ -94,11 +94,11 @@ func (os *OfflineSession) Update() *OfflineSessionUpdateOne {
|
||||
// Unwrap unwraps the OfflineSession entity that was returned from a transaction after it was closed,
|
||||
// so that all future queries will be executed through the driver which created the transaction.
|
||||
func (os *OfflineSession) Unwrap() *OfflineSession {
|
||||
tx, ok := os.config.driver.(*txDriver)
|
||||
_tx, ok := os.config.driver.(*txDriver)
|
||||
if !ok {
|
||||
panic("db: OfflineSession is not a transactional entity")
|
||||
}
|
||||
os.config.driver = tx.drv
|
||||
os.config.driver = _tx.drv
|
||||
return os
|
||||
}
|
||||
|
||||
@@ -106,15 +106,18 @@ func (os *OfflineSession) Unwrap() *OfflineSession {
|
||||
func (os *OfflineSession) String() string {
|
||||
var builder strings.Builder
|
||||
builder.WriteString("OfflineSession(")
|
||||
builder.WriteString(fmt.Sprintf("id=%v", os.ID))
|
||||
builder.WriteString(", user_id=")
|
||||
builder.WriteString(fmt.Sprintf("id=%v, ", os.ID))
|
||||
builder.WriteString("user_id=")
|
||||
builder.WriteString(os.UserID)
|
||||
builder.WriteString(", conn_id=")
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("conn_id=")
|
||||
builder.WriteString(os.ConnID)
|
||||
builder.WriteString(", refresh=")
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("refresh=")
|
||||
builder.WriteString(fmt.Sprintf("%v", os.Refresh))
|
||||
builder.WriteString(", ")
|
||||
if v := os.ConnectorData; v != nil {
|
||||
builder.WriteString(", connector_data=")
|
||||
builder.WriteString("connector_data=")
|
||||
builder.WriteString(fmt.Sprintf("%v", *v))
|
||||
}
|
||||
builder.WriteByte(')')
|
||||
|
||||
Reference in New Issue
Block a user