Renaming the StORM extensions/mirroring protocols
This commit is contained in:
parent
715bdbd6c2
commit
b3a1bf8eb5
|
@ -13,7 +13,7 @@ public var StORMdebug = false
|
||||||
|
|
||||||
/// Base StORM superclass from which all Database-Connector StORM classes inherit.
|
/// Base StORM superclass from which all Database-Connector StORM classes inherit.
|
||||||
/// Provides base functionality and rules.
|
/// Provides base functionality and rules.
|
||||||
open class StORM : CCXMirror {
|
open class StORM : StORMMirror {
|
||||||
|
|
||||||
/// Results container of type StORMResultSet.
|
/// Results container of type StORMResultSet.
|
||||||
open var results = StORMResultSet()
|
open var results = StORMResultSet()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// CCXExtensions.swift
|
// StORMExtensions.swift
|
||||||
// StORM
|
// StORM
|
||||||
//
|
//
|
||||||
// Created by Ryan Coyne on 11/22/17.
|
// Created by Ryan Coyne on 11/22/17.
|
|
@ -1,25 +1,25 @@
|
||||||
//
|
//
|
||||||
// CCXMirroring.swift
|
// StORMMirroring.swift
|
||||||
//
|
//
|
||||||
// Created by Ryan Coyne on 11/22/17.
|
// Created by Ryan Coyne on 11/22/17.
|
||||||
// Copyright © 2017 ClearCodeX, Inc. All rights reserved.
|
// Copyright © 2017 ClearCodeX, Inc. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
// CCXMirror.swift
|
// StORMMirror.swift
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Created by Ryan Coyne on 11/17/17.
|
// Created by Ryan Coyne on 11/17/17.
|
||||||
// Copyright © 2017 ClearCodeX, Inc. All rights reserved.
|
// Copyright © 2017 ClearCodeX, Inc. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
public protocol CCXMirroring {
|
public protocol StORMMirroring {
|
||||||
func didInitializeSuperclass()
|
func didInitializeSuperclass()
|
||||||
func allChildren(includingNilValues : Bool, primaryKey: String?) -> [Mirror.Child]
|
func allChildren(includingNilValues : Bool, primaryKey: String?) -> [Mirror.Child]
|
||||||
func primaryKeyLabel() -> String?
|
func primaryKeyLabel() -> String?
|
||||||
}
|
}
|
||||||
|
|
||||||
open class CCXMirror: CCXMirroring {
|
open class StORMMirror: StORMMirroring {
|
||||||
// The superclass count will include CCXMirror, StORM, & PostgresStORM by the time we get to the subclasses we need to process.
|
// The superclass count will include CCXMirror, StORM, & PostgresStORM by the time we get to the subclasses we need to process.
|
||||||
private var superclassCount = 0
|
private var superclassCount = 0
|
||||||
public func didInitializeSuperclass() {
|
public func didInitializeSuperclass() {
|
Loading…
Reference in New Issue