Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: goware/pgkit

Tags

v2.4.1

Toggle v2.4.1's commit message
upgrade deps

v2.4.0

Toggle v2.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Expose ConnMaxIdleTime, Add 1m jitter to MaxConnLifetime (#29)

* Expose ConnMaxIdleTime config

* Prevent connections from being closed at the same time

Add 1min jitter

v2.3.0

Toggle v2.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
tx query from context (#28)

v2.2.5

Toggle v2.2.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
upgrade deps (#26)

v2.2.4

Toggle v2.2.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
represent slice of uints as hex string (#25)

* represent slice of uints as hex string

* use \x format for slice of uint8

v2.2.3

Toggle v2.2.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
go.mod: Downgrade to Go 1.21 as minimal required version (#22)

v2.2.2

Toggle v2.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
db.In, db.NotIn iterating slices (#21)

v2.2.1

Toggle v2.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix panic (#18)

* reproduce panice when calling get one in transaction

* pass scan.API while creating tx Querier

v2.2.0

Toggle v2.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Log tracer - Simple tool to debug queries locally and report sql erro…

…rs + long running queries (#17)

* upgrade to 1.21 to allow using slog

* log queries and errors

* log query if it exceeds defined threshold

* implement comments from Vojtech

* tests for slog tracer

* add test for slow query

* log only first query in batch action to prevent noise

* enable tracing using context value

* add slog sql tracing example

* lower pg_sleep to 100 miliseconds

* remove extra module

* exaplanation for not satisfying all interfaces

* sort imports

* check if logger is not nil

* use data.Err directly

* let client to define which log level to use for queries

* let client define how to log each section

* fix batch query test

* refactor tests

* better naming for hooks

* extract getting ctx values to helper functions

* rename to log tracer

* use slog.Duration

* replace placeholders using byte scanning method

v2.1.0

Toggle v2.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Ignore error when new column is added to DB schema (allow backward-co…

…mpatible migrations) (#15)

* Add extra column to test #13 backward-compatibility

#13

* Fix panic in test

* Ignore scany errors on unknown columns

Fixes this error:
scany: column: 'new_field': no corresponding field found, or it's unexported in data.Collection