From bb7fb9b3173b404113e2d53bf6f5f62f53e3b687 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 5 Oct 2022 14:40:51 -0700 Subject: [PATCH] Regenerate go options --- bindings/go/src/fdb/generated.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bindings/go/src/fdb/generated.go b/bindings/go/src/fdb/generated.go index b765e09508..9cd8f09fe6 100644 --- a/bindings/go/src/fdb/generated.go +++ b/bindings/go/src/fdb/generated.go @@ -392,6 +392,11 @@ func (o DatabaseOptions) SetTransactionIncludePortInAddress() error { return o.setOpt(505, nil) } +// Set a random idempotency id for all transactions. See the transaction option description for more information. +func (o DatabaseOptions) SetTransactionAutomaticIdempotency() error { + return o.setOpt(506, nil) +} + // Allows ``get`` operations to read from sections of keyspace that have become unreadable because of versionstamp operations. This sets the ``bypass_unreadable`` option of each transaction created by this database. See the transaction option description for more information. func (o DatabaseOptions) SetTransactionBypassUnreadable() error { return o.setOpt(700, nil) @@ -551,6 +556,18 @@ func (o TransactionOptions) SetSizeLimit(param int64) error { return o.setOpt(503, int64ToBytes(param)) } +// Associate this transaction with this ID for the purpose of checking whether or not this transaction has already committed. Must be at least 16 bytes and less than 256 bytes. +// +// Parameter: Unique ID +func (o TransactionOptions) SetIdempotencyId(param string) error { + return o.setOpt(504, []byte(param)) +} + +// Automatically assign a random 16 byte idempotency id for this transaction. Prevents commits from failing with ``commit_unknown_result``. WARNING: If you are also using the multiversion client or transaction timeouts, if either cluster_version_changed or transaction_timed_out was thrown during a commit, then that commit may have already succeeded or may succeed in the future. +func (o TransactionOptions) SetAutomaticIdempotency() error { + return o.setOpt(505, nil) +} + // Snapshot read operations will see the results of writes done in the same transaction. This is the default behavior. func (o TransactionOptions) SetSnapshotRywEnable() error { return o.setOpt(600, nil)