mirror of https://github.com/vapor/docs.git
Fix the position of try
In addition, correction of missing designation https://github.com/vapor/mysql-provider/blob/master/Sources/VaporMySQL/Provider.swift#L61-L75
This commit is contained in:
parent
0799f8ed3d
commit
0471eb6c16
|
|
@ -74,8 +74,8 @@ import VaporMySQL
|
|||
|
||||
let drop = Droplet()
|
||||
|
||||
let mysql = VaporMySQL.Provider(host: "localhost", user: "root")
|
||||
try drop.addProvider(mysql)
|
||||
let mysql = try VaporMySQL.Provider(host: "localhost", user: "root", password: "", database: "vapor")
|
||||
drop.addProvider(mysql)
|
||||
|
||||
...
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue