Skip to main content
Module

x/typeorm/src/index.ts>createConnection

Forked from https://github.com/typeorm/typeorm
Latest
function createConnection
import { createConnection } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Creates a new connection and registers it in the manager. Only one connection from ormconfig will be created (name "default" or connection without name).

Returns

Promise<Connection>

Creates a new connection from the ormconfig file with a given name.

Parameters

name: string

Returns

Promise<Connection>

Creates a new connection and registers it in the manager.

Parameters

options: ConnectionOptions

Returns

Promise<Connection>