sqltrace

package
v0.0.0-...-c512099 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sqltrace implements driver sql trace functions.

Example
package main

import (
	"github.com/rjohnson3/go-hdb/driver/sqltrace"
)

func main() {
	sqltrace.SetOn(true)  // set SQL trace output active
	sqltrace.SetOn(false) // set SQL trace output inactive
}
Output:

Index

Examples

Constants

This section is empty.

Variables

View Source
var Trace = log.New(io.Discard, "hdb sql ", log.Ldate|log.Ltime)

Trace is the sqlTrace logging instance.

Functions

func On

func On() bool

On returns if tracing methods output is active.

func SetOn

func SetOn(on bool)

SetOn sets tracing methods output active or inactive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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