mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
commit
3c4a80fb49
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