mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 12:23:58 -04:00 
			
		
		
		
	added files via upload
This commit is contained in:
		| @@ -0,0 +1,35 @@ | ||||
| // | ||||
| //  PTDatabaseManager.h | ||||
| //  Derived from: | ||||
| // | ||||
| //  FMDatabase.h | ||||
| //  FMDB( https://github.com/ccgus/fmdb ) | ||||
| // | ||||
| //  Created by Peng Tao on 15/11/23. | ||||
| // | ||||
| //  Licensed to Flying Meat Inc. under one or more contributor license agreements. | ||||
| //  See the LICENSE file distributed with this work for the terms under | ||||
| //  which Flying Meat Inc. licenses this file to you. | ||||
|  | ||||
| #import <Foundation/Foundation.h> | ||||
| #import "FLEXSQLResult.h" | ||||
|  | ||||
| /// Conformers should automatically open and close the database | ||||
| @protocol FLEXDatabaseManager <NSObject> | ||||
|  | ||||
| @required | ||||
|  | ||||
| /// @return \c nil if the database couldn't be opened | ||||
| + (instancetype)managerForDatabase:(NSString *)path; | ||||
|  | ||||
| /// @return a list of all table names | ||||
| - (NSArray<NSString *> *)queryAllTables; | ||||
| - (NSArray<NSString *> *)queryAllColumnsOfTable:(NSString *)tableName; | ||||
| - (NSArray<NSArray *> *)queryAllDataInTable:(NSString *)tableName; | ||||
|  | ||||
| @optional | ||||
|  | ||||
| - (NSArray<NSString *> *)queryRowIDsInTable:(NSString *)tableName; | ||||
| - (FLEXSQLResult *)executeStatement:(NSString *)SQLStatement; | ||||
|  | ||||
| @end | ||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn