sqltrace

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 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/SAP/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