common

package
v1.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertNewTransaction added in v1.54.0

func InsertNewTransaction(ctx context.Context, tx *sql.Tx, txnTable string, metadata driver.Valuer) (uint64, error)

InsertNewTransaction inserts a fresh row into the transaction table and returns its auto-generated id. When metadata is nil the row is inserted with column defaults only (useful in migrations that predate the metadata column or do not need to record metadata).

func MaybeAddCredentialsProviderHook

func MaybeAddCredentialsProviderHook(dbConfig *mysql.Config, credentialsProvider datastore.CredentialsProvider) error

MaybeAddCredentialsProviderHook adds a hook that retrieves the configuration from the CredentialsProvider if the given credentialsProvider is not nil

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL