Documentation
¶
Overview ¶
Package dbutil provides shared helpers for database-layer operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUniqueViolation ¶
IsUniqueViolation reports whether err is a Postgres unique constraint violation (SQLSTATE 23505).
func MergeSettings ¶
func MergeSettings(existing, newSettings json.RawMessage) json.RawMessage
MergeSettings returns newSettings with any keys absent from newSettings filled in from existing. Keys present in newSettings always win. This is used to preserve secret fields (passwords, API keys) when the frontend omits them from an update request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.