You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
746 B

  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<NSDictionary<NSString *, id> *> *)queryAllTables;
  19. - (NSArray<NSString *> *)queryAllColumnsWithTableName:(NSString *)tableName;
  20. - (NSArray<NSDictionary<NSString *, id> *> *)queryAllDataWithTableName:(NSString *)tableName;
  21. @end