package
2.1.0-alpha.1+incompatible
Repository: https://github.com/gitql/vitess.git
Documentation: pkg.go.dev
# Functions
DBConnectionCreator is the wrapper function to use to create a pool of DBConnection objects.
NewConnectionPool creates a new ConnectionPool.
NewDBConnection returns a new DBConnection based on the ConnParams and will use the provided stats to collect timing.
# Variables
ErrConnPoolClosed is returned / panicked whent he connection pool is closed.
# Structs
ConnectionPool re-exposes ResourcePool as a pool of PoolConnection objects.
DBConnection re-exposes sqldb.Conn with some wrapping to implement most of PoolConnection interface, except Recycle.
PooledDBConnection re-exposes DBConnection as a PoolConnection.
# Interfaces
PoolConnection is the interface implemented by users of this specialized pool.
# Type aliases
CreateConnectionFunc is the factory method to create new connections within the passed ConnectionPool.