An easy-to-use lightweight SQLite 3 library written in Objective-C for Mac OS and iOS 4+ that will build SQL statements and manage database connections, plus an active record based ORM.
157
stars
38
forks
source link
Error while using ziminji/ objective-c-sql-query-builder ? #28
I had included all .h & .m file from src folder to my application in supporting files folder.
I created tbl_FileWatcher:
@interface tbl_FileWatcher : ZIMOrmModel
{
@protected
NSData _FileWatcher;
NSString _FolderPath;
NSString _Ext;
}
@property (strong, nonatomic) NSData FileWatcher;
@property (strong, nonatomic) NSString FolderPath;
@property (strong, nonatomic) NSString Ext;
@end
And in myApplication.m
ZIMOrmSelectStatement select = [[ZIMOrmSelectStatement alloc] initWithModel: [tbl_FileWatcher class]];
NSArray records = [select query];
for (tbl_FileWatcher *record in records) {
NSLog(@"%@: %@", [record pk], [record firstName]);
}}
When i build my application "Unexpected '@' in program" error occur at many places:
one of them is:
ZIMSqlAlterTableStatement.m
[array addObject: @[[attributes objectForKey: @"name"], attributes]];
What is wrong? Any suggestion.. Is thr any xcode project which uses this ziminji / objective-c-sql-query-builder?
I had included all .h & .m file from src folder to my application in supporting files folder. I created tbl_FileWatcher: @interface tbl_FileWatcher : ZIMOrmModel { @protected NSData _FileWatcher; NSString _FolderPath; NSString _Ext; } @property (strong, nonatomic) NSData FileWatcher; @property (strong, nonatomic) NSString FolderPath; @property (strong, nonatomic) NSString Ext; @end
And in myApplication.m ZIMOrmSelectStatement select = [[ZIMOrmSelectStatement alloc] initWithModel: [tbl_FileWatcher class]]; NSArray records = [select query];
for (tbl_FileWatcher *record in records) { NSLog(@"%@: %@", [record pk], [record firstName]); }}
When i build my application "Unexpected '@' in program" error occur at many places: one of them is: ZIMSqlAlterTableStatement.m [array addObject: @[[attributes objectForKey: @"name"], attributes]];
What is wrong? Any suggestion.. Is thr any xcode project which uses this ziminji / objective-c-sql-query-builder?
Please give me feedback... Thanks in advance...