FMDatabaseAdditions.h 947 B

12345678910111213141516171819202122232425262728293031
  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