# Class TypeORMService

Class
Module
import { TypeORMService } from "@tsed/typeorm"
Source/packages/typeorm/src/services/TypeORMService.ts

# Overview

class TypeORMService {
<span class="token keyword">readonly</span> connectionManager<span class="token punctuation">:</span> ConnectionManager<span class="token punctuation">;</span>


<span class="token function">createConnection</span><span class="token punctuation">(</span>id<span class="token punctuation">:</span> <span class="token keyword">string</span> | undefined<span class="token punctuation">,</span> settings<span class="token punctuation">:</span> ConnectionOptions<span class="token punctuation">)</span><span class="token punctuation">:</span> Promise&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">;</span>

<span class="token function">get</span><span class="token punctuation">(</span>id?<span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">)</span><span class="token punctuation">:</span> Connection<span class="token punctuation">;</span>

<span class="token function">has</span><span class="token punctuation">(</span>id?<span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
<span class="token function">closeConnections</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> Promise&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">;</span>

}

# Members

readonly connectionManager: ConnectionManager;

createConnection(id: string | undefined, settings: ConnectionOptions): Promise<any>;

get(id?: string): Connection;

has(id?: string): boolean;

closeConnections(): Promise<any>;

Other topics