---
url: /api/cli-plugin-typeorm/types/utils/function-get-database.md
description: api documentation of getDatabase from @tsed/cli-plugin-typeorm
---

## Usage

```typescript
import { getDatabase } from "@tsed/cli-plugin-typeorm/src/utils/getTypeORMDatabases";
```

> See [/packages/cli-plugin-typeorm/src/utils/getTypeORMDatabases.ts](https://github.com/tsedio/tsed-cli/blob/v7.8.1/packages/cli-plugin-typeorm/src/utils/getTypeORMDatabases.ts#L0-L0).

## Overview

```ts
function getDatabase(data: GenerateCmdContext): CliDatabases | undefined;
```
