# TypeORMService Service

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

# Overview

class TypeORMService {
    /**
     *
     * @type {"typeorm".ConnectionManager}
     * @private
     */
    readonly connectionManager: ConnectionManager;
/**
 *
 * @type <span class="token punctuation">{</span>Map&lt;<span class="token keyword">any</span><span class="token punctuation">,</span> <span class="token keyword">any</span>&gt;<span class="token punctuation">}</span>
 * @deprecated
 */
get <span class="token function">instances</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> ConnectionManager<span class="token punctuation">;</span>
/**
 *
 * @returns <span class="token punctuation">{</span>Promise&lt;"typeorm".Connection&gt;<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>
/**
 *
 * @returns <span class="token punctuation">{</span>"typeorm".Connection<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>
/**
 *
 * @param <span class="token punctuation">{</span><span class="token keyword">string</span><span class="token punctuation">}</span> id
 * @returns <span class="token punctuation">{</span><span class="token keyword">boolean</span><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>

}