5d9ff5df03
Bun's pgdialect scans/appends native slices directly, so array columns
(text[], integer[], uuid[], ...) always generate as plain []string,
[]int32, etc. with an explicit "array" bun tag, regardless of --types
(sqltypes/stdlib/baselib). The SqlXxxArray wrapper types are no longer
used for Bun array columns (gorm is unaffected and keeps using them).
Adds --array-nullable pointer_slice to represent nullable array columns
as *[]T instead of []T, so callers can distinguish SQL NULL (nil) from
'{}' (pointer to an empty slice). Verified end-to-end against a live
PostgreSQL instance for NULL/{}/populated arrays in every --types mode.
Closes #13
12 lines
534 B
Go
12 lines
534 B
Go
// Package puddle is a generic resource pool with type-parametrized api.
|
|
/*
|
|
|
|
Puddle is a tiny generic resource pool library for Go that uses the standard
|
|
context library to signal cancellation of acquires. It is designed to contain
|
|
the minimum functionality a resource pool needs that cannot be implemented
|
|
without concurrency concerns. For example, a database connection pool may use
|
|
puddle internally and implement health checks and keep-alive behavior without
|
|
needing to implement any concurrent code of its own.
|
|
*/
|
|
package puddle
|