mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 11:58:02 +00:00
16 lines
325 B
Go
16 lines
325 B
Go
|
package readmodel
|
||
|
|
||
|
import (
|
||
|
"database/sql"
|
||
|
|
||
|
"github.com/zitadel/zitadel/internal/v2/eventstore"
|
||
|
)
|
||
|
|
||
|
type QueryOpt func(opts []eventstore.QueryOpt) []eventstore.QueryOpt
|
||
|
|
||
|
func WithTx(tx *sql.Tx) QueryOpt {
|
||
|
return func(opts []eventstore.QueryOpt) []eventstore.QueryOpt {
|
||
|
return append(opts, eventstore.SetQueryTx(tx))
|
||
|
}
|
||
|
}
|