PageRenderTime 21ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/fmdb/FMDatabaseAdditions.h

http://github.com/petewarden/iPhoneTracker
C Header | 31 lines | 14 code | 7 blank | 10 comment | 0 complexity | 5909d3f53f698229761107fc8d20afad MD5 | raw file
  1. //
  2. // FMDatabaseAdditions.h
  3. // fmkit
  4. //
  5. // Created by August Mueller on 10/30/05.
  6. // Copyright 2005 Flying Meat Inc.. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface FMDatabase (FMDatabaseAdditions)
  10. - (int)intForQuery:(NSString*)objs, ...;
  11. - (long)longForQuery:(NSString*)objs, ...;
  12. - (BOOL)boolForQuery:(NSString*)objs, ...;
  13. - (double)doubleForQuery:(NSString*)objs, ...;
  14. - (NSString*)stringForQuery:(NSString*)objs, ...;
  15. - (NSData*)dataForQuery:(NSString*)objs, ...;
  16. - (NSDate*)dateForQuery:(NSString*)objs, ...;
  17. // Notice that there's no dataNoCopyForQuery:.
  18. // That would be a bad idea, because we close out the result set, and then what
  19. // happens to the data that we just didn't copy? Who knows, not I.
  20. - (BOOL)tableExists:(NSString*)tableName;
  21. - (FMResultSet*)getSchema;
  22. - (FMResultSet*)getTableSchema:(NSString*)tableName;
  23. - (BOOL)columnExists:(NSString*)tableName columnName:(NSString*)columnName;
  24. @end