Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
func AppendIfMissing(slice []qb.TableField, i qb.TableField) []qb.TableField
AppendIfMissing field to the list of fields
func CommitOrRollback ¶
func CommitOrRollback(tx CommitRollback, err error, logger log.Logger) errors.TracerError
CommitOrRollback will rollback on an errors.TracerError otherwise commit
func ObfuscateConnection ¶
ObfuscateConnection string so that it can be used in log statements.
func SetMultiStatement ¶
SetMultiStatement on the passed connection so that multiple ';' delimited statements can be sent to the database at a time.
Types ¶
type CommitRollback ¶
type CommitRollback interface { // Commit this transaction Commit() errors.TracerError // Rollback this transaction Rollback() errors.TracerError }
CommitRollback exposes the commit and rollback methods that are a subset of a the transaction methods
Click to show internal directories.
Click to hide internal directories.