Skip to content
Snippets Groups Projects
Commit f6841cca7df5 authored by Florent Aide's avatar Florent Aide
Browse files

fix docstrings

parent 9f3fbd52bc11
No related branches found
No related tags found
No related merge requests found
Pipeline #56407 failed
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
return h.GetWhere(obj, sq.Eq{column: value}) 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) // (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 { func (h *SQLHelper) GetByForUpdate(obj Mapped, column string, value interface{}) error {
return h.GetWhereForUpdate(obj, sq.Eq{column: value}) return h.GetWhereForUpdate(obj, sq.Eq{column: value})
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
return h.Get(obj, query) 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) // (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 { func (h *SQLHelper) GetWhereForUpdate(obj Mapped, pred interface{}, args ...interface{}) error {
query := SQ. query := SQ.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment