FLEXDatabaseManager.h 670 B

123456789101112131415161718192021222324252627
  1. //
  2. // PTDatabaseManager.h
  3. // Derived from:
  4. //
  5. // FMDatabase.h
  6. // FMDB( https://github.com/ccgus/fmdb )
  7. //
  8. // Created by Peng Tao on 15/11/23.
  9. //
  10. // Licensed to Flying Meat Inc. under one or more contributor license agreements.
  11. // See the LICENSE file distributed with this work for the terms under
  12. // which Flying Meat Inc. licenses this file to you.
  13. #import <Foundation/Foundation.h>
  14. @protocol FLEXDatabaseManager <NSObject>
  15. @required
  16. - (instancetype)initWithPath:(NSString*)path;
  17. - (BOOL)open;
  18. - (NSArray *)queryAllTables;
  19. - (NSArray *)queryAllColumnsWithTableName:(NSString *)tableName;
  20. - (NSArray *)queryAllDataWithTableName:(NSString *)tableName;
  21. @end