mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
update README.md
update outdated parameters of the createConnection method.
This commit is contained in:
parent
8d9083bbb9
commit
be9ea332aa
14
README.md
14
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
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user