sqldb

package
v1.28.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sqldb는 표준 database/sql *sql.DB 커넥션 풀 파라미터 적용 도구를 제공합니다. pgx에 의존하지 않으며, pgxpool 기반 풀 생성은 pkg/db/pgxdb를 사용하십시오.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(db *sql.DB, cfg PoolConfig)

Types

type PoolConfig

type PoolConfig struct {
	MaxOpenConns int
	MaxIdleConns int
	// MaxIdleConnsSet이 true면 MaxIdleConns가 0이어도 그대로 적용해 유휴 풀을 비활성화한다.
	// (SetMaxIdleConns(0) = 유휴 연결 미보유). false면 양수일 때만 적용한다.
	MaxIdleConnsSet bool
	ConnMaxLifetime time.Duration
	ConnMaxIdleTime time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL