sqltrace

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: Apache-2.0 Imports: 4 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

This section is empty.

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.

func Trace

func Trace(v ...interface{})

Trace calls trace logger Print method to print to the trace logger.

func Tracef

func Tracef(format string, v ...interface{})

Tracef calls trace logger Printf method to print to the trace logger.

func Traceln

func Traceln(v ...interface{})

Traceln calls trace logger Println method to print to the trace logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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