32 lines
563 B
Swift
32 lines
563 B
Swift
//
|
|
// Joins.swift
|
|
// StORM
|
|
//
|
|
// Created by Jonathan Guthrie on 2016-09-24.
|
|
//
|
|
//
|
|
|
|
public struct StORMDataSourceJoin {
|
|
public var table: String = ""
|
|
public var direction: StORMJoinType
|
|
public var onCondition: String = ""
|
|
|
|
public init() {
|
|
direction = .normal
|
|
}
|
|
public init(table: String, onCondition: String = "", direction: StORMJoinType = .normal) {
|
|
self.table = table
|
|
self.direction = direction
|
|
self.onCondition = onCondition
|
|
}
|
|
}
|
|
|
|
public enum StORMJoinType {
|
|
case INNER
|
|
case OUTER
|
|
case LEFT
|
|
case RIGHT
|
|
case STRAIGHT
|
|
case normal
|
|
}
|