Versions in this module Expand all Collapse all v0 v0.3.1 Sep 11, 2024 Changes in this version type Patcher + func NewPostgresPatcher() *Patcher + func (tm *Patcher) Columns(patchSet *PatchSet, databaseType any) string + type PrimaryKeys map[string]any + func PKey(key string, value any) PrimaryKeys + func (p PrimaryKeys) Add(key string, value any) PrimaryKeys v0.3.0 Aug 30, 2024 Changes in this version + type DiffElem struct + New any + Old any + type FieldMapper struct + func NewFieldMapper(v any) (*FieldMapper, error) + func (f *FieldMapper) StructFieldName(tag string) (string, bool) + type PatchSet struct + func NewPatchSet(data map[string]any) *PatchSet + func (s *PatchSet) Fields() []string + func (s *PatchSet) Set(field string, value any) + type Patcher struct + func NewSpannerPatcher() *Patcher + func (tm *Patcher) Diff(old any, patchSet *PatchSet) (map[string]DiffElem, error) + func (tm *Patcher) Resolve(patchSet *PatchSet, databaseType any) (map[string]any, error)