diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-05-22 14:19:54 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-05-22 14:19:54 +0200 |
| commit | ce5bdc5f6689c255dc5a24626bcc63acd498941c (patch) | |
| tree | 7c7a5f923a7706fa0d5d1866957f9005e2ae931c /query.go | |
| parent | 764eaf643e323b92a616fc8e6a193855bb43d905 (diff) | |
| download | go-oblast-ce5bdc5f6689c255dc5a24626bcc63acd498941c.tar.gz | |
doc proofreading
Diffstat (limited to 'query.go')
| -rw-r--r-- | query.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -45,6 +45,7 @@ func prepare(ctx context.Context, db Handle, query, operation string, inputSize // // Returns an error if any of the `records` has a non-zero value in any column marked as `db:",auto"`. // Records that already exist in the database should be handled with [Store.Update] instead. +// To automatically decide between INSERT and UPDATE on a per-record basis, use [Store.Upsert] instead. func (s Store[R]) Insert(ctx context.Context, db Handle, records ...*R) error { // NOTE: This function body should be as short as possible to reduce the binary size after monomorphization. // Any expression that does not depend on type R should be factored out into a reusable function. |
