🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/teltechsystems/logging-sql-driver

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/teltechsystems/logging-sql-driver

v0.0.0-20150429162913-5a0d2a2dce51
Source
Go
Version published
Created
Source

Logging SQL Driver

This driver is intended to wrap around existing sql drivers to provide logging functionality. This is great for timing queries, inspecting arguments, and quickly peeking at the actual results without needing to log them on your own

Usage

package main

import (
	"database/sql"
	"fmt"
	_ "github.com/teltechsystems/logging-sql-driver"
)

func main() {
	conn, err := sql.Open("logging:mysql", "DSN")
	fmt.Printf("conn: %s", conn)
	fmt.Printf("err: %s", err)
	defer conn.Close()

	// ....
}

FAQs

Package last updated on 29 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts