Skip to content

Commit bb1bb41

Browse files
committed
Fixed a typo, changed some file locations, Added missing files to repo
1 parent 53b05e6 commit bb1bb41

File tree

4 files changed

+56
-11
lines changed

4 files changed

+56
-11
lines changed

Examples/Shared/Category.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// Category.swift
3+
// SQLiteDB-iOS
4+
//
5+
// Created by Fahim Farook on 6/11/15.
6+
// Copyright © 2015 RookSoft Pte. Ltd. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
class Category:SQLTable {
12+
var id = -1
13+
var name = ""
14+
15+
init() {
16+
super.init(tableName:"categories")
17+
}
18+
19+
required convenience init(tableName:String) {
20+
self.init()
21+
}
22+
}

Examples/Shared/Task.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// Task.swift
3+
// SQLiteDB-iOS
4+
//
5+
// Created by Fahim Farook on 6/11/15.
6+
// Copyright © 2015 RookSoft Pte. Ltd. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
class Task:SQLTable {
12+
var id = -1
13+
var task = ""
14+
var categoryID = -1
15+
16+
init() {
17+
super.init(tableName:"tasks")
18+
}
19+
20+
required convenience init(tableName:String) {
21+
self.init()
22+
}
23+
}

Examples/iOS/SQLiteDB-iOS.xcodeproj/project.pbxproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
/* Begin PBXBuildFile section */
1010
DD04B4791BEC367E008E1261 /* SQLTable.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD04B4781BEC367E008E1261 /* SQLTable.swift */; };
11-
DD04B47C1BEC50A4008E1261 /* Category.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD04B47B1BEC50A4008E1261 /* Category.swift */; };
12-
DD04B47E1BEC50B0008E1261 /* Task.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD04B47D1BEC50B0008E1261 /* Task.swift */; };
1311
DD04B4811BEC511B008E1261 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DD04B47F1BEC511B008E1261 /* Launch Screen.storyboard */; };
12+
DD04B4851BEC6D6D008E1261 /* Category.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD04B4831BEC6D6D008E1261 /* Category.swift */; };
13+
DD04B4861BEC6D6D008E1261 /* Task.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD04B4841BEC6D6D008E1261 /* Task.swift */; };
1414
DD18184219D56B5B0053E68E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DD18183519D56B5B0053E68E /* Main.storyboard */; };
1515
DD18184319D56B5B0053E68E /* data.db in Resources */ = {isa = PBXBuildFile; fileRef = DD18183719D56B5B0053E68E /* data.db */; };
1616
DD18184419D56B5B0053E68E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DD18183819D56B5B0053E68E /* Images.xcassets */; };
@@ -26,9 +26,9 @@
2626

2727
/* Begin PBXFileReference section */
2828
DD04B4781BEC367E008E1261 /* SQLTable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLTable.swift; path = ../../SQLTable.swift; sourceTree = "<group>"; };
29-
DD04B47B1BEC50A4008E1261 /* Category.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Category.swift; sourceTree = "<group>"; };
30-
DD04B47D1BEC50B0008E1261 /* Task.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Task.swift; sourceTree = "<group>"; };
3129
DD04B4801BEC511B008E1261 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = "Base.lproj/Launch Screen.storyboard"; sourceTree = "<group>"; };
30+
DD04B4831BEC6D6D008E1261 /* Category.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Category.swift; sourceTree = "<group>"; };
31+
DD04B4841BEC6D6D008E1261 /* Task.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Task.swift; sourceTree = "<group>"; };
3232
DD18183619D56B5B0053E68E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
3333
DD18183719D56B5B0053E68E /* data.db */ = {isa = PBXFileReference; lastKnownFileType = file; path = data.db; sourceTree = "<group>"; };
3434
DD18183819D56B5B0053E68E /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
@@ -57,11 +57,11 @@
5757
/* End PBXFrameworksBuildPhase section */
5858

5959
/* Begin PBXGroup section */
60-
DD04B47A1BEC508D008E1261 /* Shared */ = {
60+
DD04B4821BEC6D6D008E1261 /* Shared */ = {
6161
isa = PBXGroup;
6262
children = (
63-
DD04B47B1BEC50A4008E1261 /* Category.swift */,
64-
DD04B47D1BEC50B0008E1261 /* Task.swift */,
63+
DD04B4831BEC6D6D008E1261 /* Category.swift */,
64+
DD04B4841BEC6D6D008E1261 /* Task.swift */,
6565
);
6666
path = Shared;
6767
sourceTree = "<group>";
@@ -89,7 +89,7 @@
8989
DD18183B19D56B5B0053E68E /* Source */ = {
9090
isa = PBXGroup;
9191
children = (
92-
DD04B47A1BEC508D008E1261 /* Shared */,
92+
DD04B4821BEC6D6D008E1261 /* Shared */,
9393
DD18183C19D56B5B0053E68E /* AddCategoryViewController.swift */,
9494
DD18183D19D56B5B0053E68E /* AddTaskViewController.swift */,
9595
DD18183E19D56B5B0053E68E /* AppDelegate.swift */,
@@ -219,11 +219,11 @@
219219
files = (
220220
DD18184919D56B5B0053E68E /* AppDelegate.swift in Sources */,
221221
DD04B4791BEC367E008E1261 /* SQLTable.swift in Sources */,
222-
DD04B47E1BEC50B0008E1261 /* Task.swift in Sources */,
222+
DD04B4861BEC6D6D008E1261 /* Task.swift in Sources */,
223223
DD18184B19D56B5B0053E68E /* TasksViewController.swift in Sources */,
224224
DD18184719D56B5B0053E68E /* AddCategoryViewController.swift in Sources */,
225225
DD18184E19D56BAF0053E68E /* SQLiteDB.swift in Sources */,
226-
DD04B47C1BEC50A4008E1261 /* Category.swift in Sources */,
226+
DD04B4851BEC6D6D008E1261 /* Category.swift in Sources */,
227227
DD18184A19D56B5B0053E68E /* CategoryViewController.swift in Sources */,
228228
DD18184F19D56BAF0053E68E /* String-Extras.swift in Sources */,
229229
DD18184819D56B5B0053E68E /* AddTaskViewController.swift in Sources */,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SQLiteDB
33

44
This is a simple and lightweight SQLite wrapper for Swift. It allows all basic SQLite functionality including being able to bind values to parameters in an SQL statement. The framework does require an initial SQLite database to be included in your project - it does not create the database for you via code.
55

6-
**Update: (6 Nov 2015)** The latest version of SQLiteDB will break existing code since the `SQLRow` and `SQLColumn` classes have been removed. Instead, there's a new `SQLTable` class which can be sub-classed to model your individual database table. (See the included iOS sample project for details.)
6+
**Update: (6 Nov 2015)** The latest version of SQLiteDB will break existing code since the `SQLRow` and `SQLColumn` classes have been removed. Instead, there's a new `SQLTable` class which can be sub-classed to model your individual database tables. (See the included iOS sample project for details.)
77

88
**Important:** If you are new to Swift or have not bothered to read up on the Swift documentation, please do not contact me about Swift functionality. I just don't have the time to answer your queries about Swift. On the other hand, if you're not looking for free advice but are willing to pay for my time, do feel free to contact me :)
99

0 commit comments

Comments
 (0)