Skip to content

Commit ace1bdc

Browse files
author
yanqizhou
committed
Merge branch 'master' of https://github.com/y500/YYDebugDatabase
2 parents 2ceadae + d4d2893 commit ace1bdc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ $ pod install
4343

4444
import at AppDelegate.m:
4545

46-
```
46+
```objc
4747
#import YYDebugDatabaseManager.h
4848
```
4949

5050
making one line code at `application:didFinishLaunchingWithOptions`:
5151

52-
```ruby
52+
```objc
5353
[[DebugDatabaseManager shared] startServerOnPort:9002];
5454
```
5555
#### Not run in Release
5656
57-
```
57+
```objc
5858
#ifdef DEBUG
5959
[[DebugDatabaseManager shared] startServerOnPort:9002];
6060
#end
@@ -63,12 +63,12 @@ making one line code at `application:didFinishLaunchingWithOptions`:
6363

6464
It only shows the databasesin in Documents directory and Library/Cache directory by default, if you want show databases in other directories, you can use:
6565

66-
```
66+
```objc
6767
- (void)startServerOnPort:(NSInteger)port directories:(NSArray*)directories
6868
```
6969
for example:
7070

71-
```
71+
```objc
7272
NSString *resourceDirectory = [[NSBundle mainBundle] resourcePath];
7373
NSString *databaseDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/database"];
7474
NSString *documentDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documnets"];
@@ -80,19 +80,19 @@ That’s all, just start the application :
8080
8181
Now open the provided link in your browser, and you will see like this:
8282
83-
![](http://noti.qiniudn.com/693916a699a78a1c01da2d93126c0ed7.png)
83+
![](http://noti.qiniudn.com/693916a699a78a1c01da2d93126c0ed71.png)
8484
8585
query:
8686
87-
![](http://noti.qiniudn.com/21dd97948e85cf928751ef6d2b7d9266.png)
87+
![](http://noti.qiniudn.com/21dd97948e85cf928751ef6d2b7d92662.png)
8888
8989
edit:
9090
91-
![](http://noti.qiniudn.com/b081fa0e1842a05c23321d08f7cec668.png)
91+
![](http://noti.qiniudn.com/b081fa0e1842a05c23321d08f7cec6683.png)
9292
9393
delete:
9494
95-
![](http://noti.qiniudn.com/d0c7cb82ae6aadf790dc57da6c6e888f.png)
95+
![](http://noti.qiniudn.com/d0c7cb82ae6aadf790dc57da6c6e888f4.png)
9696
9797
9898
Important:

0 commit comments

Comments
 (0)