Postgres-StORM icon indicating copy to clipboard operation
Postgres-StORM copied to clipboard

allow independent database connections in PostgresStORM

Open ccounterman opened this issue 8 years ago • 0 comments

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.

ccounterman avatar Apr 03 '17 22:04 ccounterman