From be9ea332aae21193fbc62dbd9adb6b097ed5f668 Mon Sep 17 00:00:00 2001 From: Maxiee Date: Wed, 21 Jun 2017 23:10:04 +0800 Subject: [PATCH] update README.md update outdated parameters of the createConnection method. --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 531098ed2..52207c117 100644 --- a/README.md +++ b/README.md @@ -341,14 +341,12 @@ import {createConnection} from "typeorm"; import {Photo} from "./entity/Photo"; createConnection({ - driver: { - type: "mysql", - host: "localhost", - port: 3306, - username: "root", - password: "admin", - database: "test" - }, + type: "mysql", + host: "localhost", + port: 3306, + username: "root", + password: "admin", + database: "test" entities: [ Photo ],