diff --git a/database/sql_helper.go b/database/sql_helper.go index 9f3fbd52bc119db9a377119c4a614f2b1d3e7843_ZGF0YWJhc2Uvc3FsX2hlbHBlci5nbw==..f6841cca7df532a1e281166efab5e344e3a451af_ZGF0YWJhc2Uvc3FsX2hlbHBlci5nbw== 100644 --- a/database/sql_helper.go +++ b/database/sql_helper.go @@ -47,7 +47,7 @@ return h.GetWhere(obj, sq.Eq{column: value}) } -// GetBy loads a mapped structure by a given column and get a lock +// GetByForUpdate loads a mapped structure by a given column and get a lock // (see https://www.postgresql.org/docs/current/sql-select.html#SQL-FOR-UPDATE-SHARE) func (h *SQLHelper) GetByForUpdate(obj Mapped, column string, value interface{}) error { return h.GetWhereForUpdate(obj, sq.Eq{column: value}) @@ -63,7 +63,7 @@ return h.Get(obj, query) } -// GetWhere loads a mapped structure and get a lock +// GetWhereForUpdate loads a mapped structure and get a lock // (see https://www.postgresql.org/docs/current/sql-select.html#SQL-FOR-UPDATE-SHARE) func (h *SQLHelper) GetWhereForUpdate(obj Mapped, pred interface{}, args ...interface{}) error { query := SQ.