WCTCore Class Reference

Inherits from NSObject
Declared in WCTCore.h

Overview

Thread-safe

– tag

The tag of the database. You should set it on a WCTDatabase and can get it from all kind of WCTCore objects, including WCTDatabase, WCTTable, WCTransaction, WCTSelect, WCTRowSelect, WCTMultiSelect, WCTInsert, WCTDelete, WCTUpdate and so on. Note that WCTCore objects with same path share this tag, even they are not the same object.

 WCTDatabase* database1 = [[WCTDatabase alloc] initWithPath:path];
 WCTDatabase* database2 = [[WCTDatabase alloc] initWithPath:path];
 database1.tag = 1;
 NSLog(@"%d", database2.tag);//print 1
- (WCTTag)tag

Return Value

Default to 0

Declared In

WCTCore.h

– path

The path of the database

- (NSString *)path

Return Value

path

Declared In

WCTCore.h