zitadel/internal/eventstore/v3
Silvan 1ee7a1ab7c
feat(eventstore): accept transaction in push (#8945)
# Which Problems Are Solved

Push is not capable of external transactions.

# How the Problems Are Solved

A new function `PushWithClient` is added to the eventstore framework
which allows to pass a client which can either be a `*sql.Client` or
`*sql.Tx` and is used during push.

# Additional Changes

Added interfaces to database package.

# Additional Context

- part of https://github.com/zitadel/zitadel/issues/8931

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2024-11-22 17:25:28 +01:00
..
event_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event.go fix(eventstore): revert precise decimal (#8527) (#8679) 2024-09-24 18:43:29 +02:00
eventstore.go feat(eventstore): accept transaction in push (#8945) 2024-11-22 17:25:28 +01:00
field_test.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
field.go feat(eventstore): accept transaction in push (#8945) 2024-11-22 17:25:28 +01:00
mock_test.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
push_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
push.go feat(eventstore): accept transaction in push (#8945) 2024-11-22 17:25:28 +01:00
push.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
sequence_test.go fix(eventstore): increase performance on push (#7125) 2023-12-31 15:30:25 +01:00
sequence.go feat(eventstore): accept transaction in push (#8945) 2024-11-22 17:25:28 +01:00
sequences_query.sql fix(eventstore): increase performance on push (#7125) 2023-12-31 15:30:25 +01:00
type.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraints_add.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraints_delete_placeholders.sql fix(postgres <=15): delete unique constraints (#6971) 2023-11-24 07:23:23 +01:00
unique_constraints_delete.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraints.go feat(eventstore): accept transaction in push (#8945) 2024-11-22 17:25:28 +01:00