SQLiteMigrationManager.swift:SQLite.swift的迁移管理器

时间:2021-05-22 17:49:59
【文件属性】:
文件名称:SQLiteMigrationManager.swift:SQLite.swift的迁移管理器
文件大小:48KB
文件格式:ZIP
更新时间:2021-05-22 17:49:59
Swift SQLiteMigrationManager.swift SQLiteMigrationManager.swift是一个架构管理系统 。 它在很大程度上受到启发。 概念 SQLiteMigrationManager.swift通过将schema_migrations表引入数据库来工作: CREATE TABLE " schema_migrations " ( " version " INTEGER NOT NULL UNIQUE ); schema_migrations每一行都对应于已应用的单个迁移,并且代表该模式的唯一版本。 此架构支持任何基于整数的版本控制方案,但是建议您使用编码时间戳的整数。 用法 看一下。 创建迁移表 let db = try Connection ( " path/to/store.sqlite " ) let manager = SQLiteMig
【文件预览】:
SQLiteMigrationManager.swift-master
----.gitignore(432B)
----SQLiteMigrationManagerTests macOS()
--------Info.plist(701B)
----SQLiteMigrationManager iOS()
--------Info.plist(808B)
----Sources()
--------SQLiteMigrationManager.swift(7KB)
----Example()
--------bin()
--------SQLiteExample.xcworkspace()
--------SQLiteExample.xcodeproj()
--------README.md(385B)
--------SQLiteExample()
--------Podfile(138B)
----bin()
--------setup(402B)
--------run-tests(459B)
----.travis.yml(1KB)
----SQLiteMigrationManager.xcodeproj()
--------xcshareddata()
--------project.xcworkspace()
--------project.pbxproj(32KB)
--------xcuserdata()
----LICENSE(1KB)
----CHANGELOG.md(2KB)
----.swift-version(4B)
----.gitmodules(142B)
----README.md(5KB)
----Package.resolved(337B)
----Cartfile.resolved(44B)
----Cartfile(45B)
----SQLiteMigrationManager macOS()
--------SQLiteMigrationManagerMacOs.h(636B)
--------Info.plist(841B)
----SQLiteMigrationManager.xcworkspace()
--------xcshareddata()
--------contents.xcworkspacedata(567B)
----SQLiteMigrationManagerTests iOS()
--------Info.plist(733B)
----Package.swift(762B)
----Carthage()
--------Checkouts()
----Tests()
--------resources()
--------SQLiteMigrationManagerTests.swift(12KB)
----SQLiteMigrationManager.swift.podspec(875B)

网友评论