Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mysql/src/pool.ts>ConnectionPool

MySQL driver for Deno
Very Popular
Latest
class ConnectionPool
import { ConnectionPool } from "https://deno.land/x/mysql@v2.12.1/src/pool.ts";

Constructors

new
ConnectionPool(maxSize: number, creator: () => Promise<PoolConnection>)

Properties

_closed: boolean
_connections: PoolConnection[]
readonly
info

Methods

Close the pool and all connections in the pool.

After closing, pop() will throw an error, push() will close the connection immediately.

pop(): Promise<PoolConnection>