sql

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetHooks added in v0.0.9

func SetHooks(driver d.Driver) d.Driver

SetHooks sets following context hooks PreOpen: count opening connection in order to delete inserted records when last opend connection is closed. PreExec: start count for to record SQL execution time PostExec: show executed Query and execution time if sqlTracingEnabled is set true PreClose: delete all inserted records when last opened connection is closed.

func Tracing added in v0.0.9

func Tracing(enabled bool)

Tracing set flag which determines to show executed SQL in the console

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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