42 lines
710 B
Swift
42 lines
710 B
Swift
//
|
|
// Connect.swift
|
|
// PerfectORM
|
|
//
|
|
// Created by Jonathan Guthrie on 2016-09-23.
|
|
//
|
|
//
|
|
|
|
import Foundation
|
|
|
|
open class Connect {
|
|
open var datasource = DataSource()
|
|
open var credentials = DataSourceCredentials()
|
|
|
|
open var database: String = ""
|
|
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)
|
|
// }
|
|
|
|
// open func select(){}
|
|
// open func create(){}
|
|
// open func update(){}
|
|
// open func upsert(){}
|
|
//
|
|
// open func delete(){}
|
|
|
|
|
|
|
|
|
|
}
|
|
|