https://github.com/sqltee/sqltee
SQL driver wrapping, queries interpolation, time and arguments logging for Go.
https://github.com/sqltee/sqltee
database go golang logging sql
Last synced: 5 months ago
JSON representation
SQL driver wrapping, queries interpolation, time and arguments logging for Go.
- Host: GitHub
- URL: https://github.com/sqltee/sqltee
- Owner: sqltee
- License: bsd-3-clause
- Created: 2020-03-17T19:37:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-29T09:22:15.000Z (almost 4 years ago)
- Last Synced: 2026-01-12T02:45:09.903Z (5 months ago)
- Topics: database, go, golang, logging, sql
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqltee
[](https://cloud.drone.io/sqltee/sqltee)
[](https://pkg.go.dev/github.com/sqltee/sqltee)
SQL [database/sql/driver][] wrapping, queries interpolation, execution time
and arguments logging (values, named values, transaction options) for Go.
Source files are distributed under the BSD-style license.
[database/sql/driver]: https://golang.org/pkg/database/sql/driver
## About
The software is considered to be at a alpha level of readiness,
its extremely slow and allocates a lots of memory.
## Benchmark
```sh
$ go test -run ^NOTHING -bench BenchmarkGob\$
goos: linux
goarch: amd64
pkg: github.com/sqltee/sqltee/examples/teegob
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
BenchmarkGob/gob_test.go:53/query_from_existing_table-8 2379 510046 ns/op
PASS
ok github.com/sqltee/sqltee/examples/teegob 1.270s
```