MCPcopy
hub / github.com/daptin/daptin / mailUidTestNextUid

Function mailUidTestNextUid

server/resource/mail_uid_test.go:115–123  ·  view source on GitHub ↗
(db *sqlx.DB, mailBoxId int64)

Source from the content-addressed store, hash-verified

113}
114
115func mailUidTestNextUid(db *sqlx.DB, mailBoxId int64) (int64, error) {
116 query, args, err := statementbuilder.Squirrel.Select("nextuid").Prepared(true).From("mail_box").Where(goqu.Ex{"id": mailBoxId}).ToSQL()
117 if err != nil {
118 return 0, err
119 }
120 var nextuid int64
121 err = db.QueryRowx(query, args...).Scan(&nextuid)
122 return nextuid, err
123}

Calls 3

ScanMethod · 0.80
QueryRowxMethod · 0.80
SelectMethod · 0.65

Tested by

no test coverage detected