-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database Schema other than public #501
Comments
If you configure your Postgres DB as normal in Vapor and then set the Details here https://forums.swift.org/t/new-to-swift-and-vapor-returning-data-from-mysql/13088 |
I do that with a test db, but it is picking up only tables made in the
I see that Models map to Tables, and the connection contains the database information, but what holds the schema information that can be configured dynamically (not static). |
@RVijay007 This issue is driver related and is finally (hopefully) being addressed. |
Closing here in favor of vapor/postgres-kit#9. There are a couple of good workarounds there in the interim. |
Hi, I'm using Vapor 3 to build a swift server that connects to an existing db within our organization. I've read the docs on how to connect to an existing database, but I'm still unclear on how to hook up Models to a specific schema. It seems to always use the
public
db schema; how can I use a schema other thanpublic
?We use Postgres as our database.
The text was updated successfully, but these errors were encountered: