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.
Click to show internal directories.
Click to hide internal directories.