---
name: "mongoc_client_pool_new"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_client_pool_new"
---

# mongoc\_client\_pool\_new(3)

## SYNOPSIS

```
mongoc_client_pool_t *
mongoc_client_pool_new (const mongoc_uri_t *uri);
```

This function creates a new *mongoc\_client\_pool\_t* using the *mongoc\_uri\_t* provided.

## PARAMETERS

- •

  **uri**: A *mongoc\_uri\_t*.

## RETURNS

A newly allocated *mongoc\_client\_pool\_t* that should be freed with *mongoc\_client\_pool\_destroy()* when no longer in use. On error, **NULL** is returned and an error may be logged.

**SEE ALSO:**

```
mongoc_client_pool_new_with_error()
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
