next iteration

This commit is contained in:
Jonathan Guthrie 2016-09-24 00:29:56 -04:00
parent da4f83a067
commit 7be8c3b918
9 changed files with 12 additions and 20 deletions

View File

@ -24,6 +24,7 @@ let package = Package(
targets: [],
dependencies: [
.Package(url: "https://github.com/PerfectlySoft/PerfectLib.git", majorVersion: 2, minor: 0),
.Package(url: "https://github.com/PerfectlySoft/Perfect-PostgreSQL.git", majorVersion: 2, minor: 0)
],
exclude: []
)

View File

@ -16,16 +16,16 @@ open class Connect {
open var table: String = ""
// public init() {}
//
// public init(_ ds: DataSource,
// host: String,
// username: String = "",
// password: String = "",
// port: Int = 0) {
// self.datasource = ds
// self.credentials = DataSourceCredentials(host: host, port: port, user: username, pass: password)
// }
public init() {}
public init(_ ds: DataSource,
host: String,
username: String = "",
password: String = "",
port: Int = 0) {
self.datasource = ds
self.credentials = DataSourceCredentials(host: host, port: port, user: username, pass: password)
}
// open func select(){}
// open func create(){}

View File

@ -1,9 +0,0 @@
//
// main.swift
// PerfectORM
//
// Created by Jonathan Guthrie on 2016-09-23.
//
//
print("Perfect ORM")