Skip to content

Commit ce2a65e

Browse files
committed
解决冲突
2 parents 9917c51 + 44057bd commit ce2a65e

File tree

31 files changed

+1203
-1442
lines changed

31 files changed

+1203
-1442
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
build/
2+
**/build
3+
*.pbxuser
4+
!default.pbxuser
5+
*.mode1v3
6+
!default.mode1v3
7+
*.mode2v3
8+
!default.mode2v3
9+
*.perspectivev3
10+
!default.perspectivev3
11+
xcuserdata
12+
*.xccheckout
13+
*.moved-aside
14+
*.hmap
15+
*.ipa
16+
*.xcuserstate
17+
.DS_Store
18+
*.DS_Store
19+
**/.DS_Store
20+
**/xcuserdata
21+
**/DerivedData
22+
23+
# emacs backup files
24+
*~

LKDBHelper.podspec.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "LKDBHelper",
3-
"version": "2.1.4",
3+
"version": "2.1.6",
44
"summary": "全自动的插入,查询,更新,删除, an automatic database operation thread-safe and not afraid of recursive deadlock",
55
"description": "全面支持 NSArray,NSDictionary, ModelClass, NSNumber, NSString, NSDate, NSData, UIColor, UIImage, CGRect, CGPoint, CGSize, NSRange, int,char,float, double, long.. 等属性的自动化操作(插入和查询)",
66
"homepage": "https://github.com/li6185377/LKDBHelper-SQLite-ORM",
@@ -10,7 +10,7 @@
1010
},
1111
"source": {
1212
"git": "https://github.com/li6185377/LKDBHelper-SQLite-ORM.git",
13-
"tag": "2.1.4"
13+
"tag": "2.1.6"
1414
},
1515
"platforms": {
1616
"ios": "4.3",

LKDBHelper/Helper/.DS_Store

-5 KB
Binary file not shown.

LKDBHelper/Helper/LKDB+Mapping.h

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "LKDBUtils.h"
1010

11-
@interface NSObject(TableMapping)
11+
@interface NSObject (TableMapping)
1212

1313
/**
1414
* @brief Overwrite in your models if your property names don't match your Table Column names.
@@ -17,64 +17,62 @@
1717
@{ sql column name : ( model property name ) or LKDBInherit or LKDBUserCalculate}
1818
1919
*/
20-
+(NSDictionary*)getTableMapping;
20+
+ (NSDictionary*)getTableMapping;
2121

2222
/***
2323
simple set a column as "LKSQL_Mapping_UserCalculate"
2424
column name
2525
*/
26-
+(void)setUserCalculateForCN:(NSString*)columnName;
26+
+ (void)setUserCalculateForCN:(NSString*)columnName;
2727

2828
///property type name
29-
+(void)setUserCalculateForPTN:(NSString*)propertyTypeName;
29+
+ (void)setUserCalculateForPTN:(NSString*)propertyTypeName;
3030

3131
///binding columnName to PropertyName
32-
+(void)setTableColumnName:(NSString*)columnName bindingPropertyName:(NSString*)propertyName;
32+
+ (void)setTableColumnName:(NSString*)columnName bindingPropertyName:(NSString*)propertyName;
3333

3434
///remove unwanted binding property
35-
+(void)removePropertyWithColumnName:(NSString*)columnName;
36-
+(void)removePropertyWithColumnNameArray:(NSArray*)columnNameArray;
35+
+ (void)removePropertyWithColumnName:(NSString*)columnName;
36+
+ (void)removePropertyWithColumnNameArray:(NSArray*)columnNameArray;
3737
@end
3838

3939
@interface LKDBProperty : NSObject
4040

4141
///保存的方式
42-
@property(readonly,copy,nonatomic)NSString* type;
42+
@property (readonly, copy, nonatomic) NSString* type;
4343

4444
///保存到数据的 列名
45-
@property(readonly,copy,nonatomic)NSString* sqlColumnName;
45+
@property (readonly, copy, nonatomic) NSString* sqlColumnName;
4646
///保存到数据的类型
47-
@property(readonly,copy,nonatomic)NSString* sqlColumnType;
47+
@property (readonly, copy, nonatomic) NSString* sqlColumnType;
4848

4949
///属性名
50-
@property(readonly,copy,nonatomic)NSString* propertyName;
50+
@property (readonly, copy, nonatomic) NSString* propertyName;
5151
///属性的类型
52-
@property(readonly,copy,nonatomic)NSString* propertyType;
52+
@property (readonly, copy, nonatomic) NSString* propertyType;
5353

5454
///属性的Protocol
5555
//@property(readonly,copy,nonatomic)NSString* propertyProtocol;
5656

57-
5857
///creating table's column
5958
@property BOOL isUnique;
6059
@property BOOL isNotNull;
61-
@property(copy,nonatomic) NSString* defaultValue;
62-
@property(copy,nonatomic) NSString* checkValue;
60+
@property (copy, nonatomic) NSString* defaultValue;
61+
@property (copy, nonatomic) NSString* checkValue;
6362
@property NSInteger length;
6463

65-
-(BOOL)isUserCalculate;
64+
- (BOOL)isUserCalculate;
6665
@end
6766

68-
6967
@interface LKModelInfos : NSObject
7068

71-
-(id)initWithKeyMapping:(NSDictionary*)keyMapping propertyNames:(NSArray*)propertyNames propertyType:(NSArray*)propertyType primaryKeys:(NSArray*)primaryKeys;
69+
- (id)initWithKeyMapping:(NSDictionary*)keyMapping propertyNames:(NSArray*)propertyNames propertyType:(NSArray*)propertyType primaryKeys:(NSArray*)primaryKeys;
7270

73-
@property(readonly,nonatomic)NSUInteger count;
74-
@property(readonly,nonatomic)NSArray* primaryKeys;
71+
@property (readonly, nonatomic) NSUInteger count;
72+
@property (readonly, nonatomic) NSArray* primaryKeys;
7573

76-
-(LKDBProperty*)objectWithIndex:(NSInteger)index;
77-
-(LKDBProperty*)objectWithPropertyName:(NSString*)propertyName;
78-
-(LKDBProperty*)objectWithSqlColumnName:(NSString*)columnName;
74+
- (LKDBProperty*)objectWithIndex:(NSInteger)index;
75+
- (LKDBProperty*)objectWithPropertyName:(NSString*)propertyName;
76+
- (LKDBProperty*)objectWithSqlColumnName:(NSString*)columnName;
7977

8078
@end

0 commit comments

Comments
 (0)