Skip to content

wrap you favorite database/sql/driver with your favority functions

License

Notifications You must be signed in to change notification settings

metakeule/dbwrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbwrap

Build Status

Only works with Go >= 1.1

This library offers two utilities for dealing with the Go database/sql package:

  1. a wrapper that can wrap any database driver that is compatible to sql/driver and intercept calls to it

  2. a fake driver that does nothing but tracking the queries and values that are delivered to him

Why?

Use them to

  • debug a database driver
  • run code before each query
  • transform sql before submitting it to database driver
  • test code that emits sql
  • do logging of sql statements
  • do statistics
  • track long running sql queries

How?

see examples directory

About

wrap you favorite database/sql/driver with your favority functions

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages