WIP: documentation

This commit is contained in:
John Rommel Estropia
2017-05-12 01:42:19 +09:00
parent 66bef87422
commit 9c25336ff6
4 changed files with 446 additions and 172 deletions

View File

@@ -39,6 +39,14 @@ public final class SchemaHistory: ExpressibleByArrayLiteral {
*/
public let currentModelVersion: ModelVersion
/**
The schema for the current model version. The `DataStack` will try to migrate all `StorageInterface`s added to itself to this version, following the version steps provided by the `migrationChain`.
*/
public var currentSchema: DynamicSchema {
return self.schema(for: self.currentModelVersion)!
}
/**
The version string for the current model version. The `DataStack` will try to migrate all `StorageInterface`s added to itself to this version, following the version steps provided by the `migrationChain`.
*/