---
name: "mongoc_database_get_name"
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_database_get_name"
---

# mongoc\_database\_get\_name(3)

## SYNOPSIS

```
const char *
mongoc_database_get_name (mongoc_database_t *database);
```

Fetches the name of the database.

## PARAMETERS

- •

  **database**: A *mongoc\_database\_t*.

## RETURNS

A string which should not be modified or freed.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
