Documentation ¶
Index ¶
- func ExecuteDBQuery(ctx context.Context, db *sql.DB, params map[string]string, query string) error
- func ExecuteDBQueryDirect(ctx context.Context, db *sql.DB, params map[string]string, query string) error
- func ExecuteTxQuery(ctx context.Context, tx *sql.Tx, params map[string]string, query string) error
- func ExecuteTxQueryDirect(ctx context.Context, tx *sql.Tx, params map[string]string, query string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteDBQuery ¶
ExecuteDBQuery handles executing one single statement while properly releasing its resources. - ctx: Required - db: Required - config: Optional, may be nil - query: Required
func ExecuteDBQueryDirect ¶ added in v0.5.0
func ExecuteDBQueryDirect(ctx context.Context, db *sql.DB, params map[string]string, query string) error
ExecuteDBQueryDirect handles executing one single statement without preparing the query before executing it, which can be more efficient. - ctx: Required - db: Required - config: Optional, may be nil - query: Required
func ExecuteTxQuery ¶
ExecuteTxQuery handles executing one single statement while properly releasing its resources. - ctx: Required - tx: Required - config: Optional, may be nil - query: Required
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.