# HG changeset patch # User Florent Aide <florent.aide@gmail.com> # Date 1684091115 -7200 # Sun May 14 21:05:15 2023 +0200 # Node ID f6841cca7df532a1e281166efab5e344e3a451af # Parent 9f3fbd52bc119db9a377119c4a614f2b1d3e7843 fix docstrings diff --git a/database/sql_helper.go b/database/sql_helper.go --- 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.