Skip to content
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

allow independent database connections in PostgresStORM #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ccounterman
Copy link

I wanted to use Postgres-StORM for my web project, and also use Perfect-Turnstile-PostgreSQL for authentication. But I don't want them to use the same Postgres servers.

I used the SQLite StORM implementation as a model and added this code. It works for my needs now.

But I haven't figured out how to substitute my fork for yours, except by modifying the Xcode project.
I don't know how to get the dependencies adjusted. Here's my Package.swift:

import PackageDescription
let package = Package(
name: "temppgts",
targets: [],
dependencies: [
.Package(url: "https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2),
.Package(url: "https://github.com/PerfectlySoft/Perfect-Turnstile-PostgreSQL.git", majorVersion: 1),
.Package(url: "https://github.com/ccounterman/Postgres-StORM.git", majorVersion: 1),
.Package(url: "https://github.com/PerfectlySoft/Perfect-Mustache.git", majorVersion: 2),
.Package(url: "https://github.com/PerfectlySoft/Perfect-RequestLogger.git", majorVersion: 1),
]
)

It'd be good to either have such multiple connector support added to Postgres, or to know how to substitute my implementation in my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant