Vapor: Vapor how To Query Many MySql Databases

Created on 29 Nov 2016  路  1Comment  路  Source: vapor/vapor

...

Most helpful comment

You can create multiple database's if you import MySQL manually.

import MySQL

let databaseOne = Database(...)
let databaseTwo = Database(...)

MyFirstModel.database = databaseOne
MySecondModel.database = databaseTwo

>All comments

You can create multiple database's if you import MySQL manually.

import MySQL

let databaseOne = Database(...)
let databaseTwo = Database(...)

MyFirstModel.database = databaseOne
MySecondModel.database = databaseTwo
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Joannis picture Joannis  路  4Comments

litan1106 picture litan1106  路  4Comments

hjuraev picture hjuraev  路  3Comments

olivier38070 picture olivier38070  路  3Comments

Joannis picture Joannis  路  4Comments