单军华
2018-03-28 f99cf1d5cc50407394501853be06cb39f38a092c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
//  LHSqlite.h
//  LHDBDemo
//
//  Created by 3wchina01 on 16/3/22.
//  Copyright © 2016年 李浩. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import "LHDBBlock.h"
typedef NS_ENUM(NSInteger,LHSqliteType) {
    LHSqliteTypeWrite,
    LHSqliteTypeRead
};
@interface LHSqlite : NSObject
 
@property (nonatomic,strong) NSString* sqlPath;
 
@property (nonatomic,strong) NSDateFormatter* dateFormatter;
 
- (instancetype)initWithPath:(NSString*)dbPath;
 
+ (instancetype)sqliteWithPath:(NSString*)dbPath;
 
+ (instancetype)shareInstance;
 
- (void)executeSQLWithSqlstring:(NSString*)sqlString object:(id)model executeType:(LHSqliteType)type success:(success)successBlock fail:(fail)failBlock;
 
@end