Skip to content

Listing Tables

cmancushman edited this page Oct 26, 2017 · 4 revisions

List All Tables in Current Database

Declaration

+(void)getNamesOfAllStackBaseTablesWithCompletionBlock:(StackBaseTableNameCompletion) compBlock;

Example

[StackBaseClient getNamesOfAllStackBaseTablesWithCompletionBlock:^(BOOL success, NSString *responseMessage, NSArray<NSString *> *tableNames) {
    
    if(success){
        
        for(NSString *tableName in tableNames){
            
            NSLog(@"Table %ld: %@", [tableNames indexOfObject:tableName], tableName);
            
        }
        
    }else{
        
        NSLog(@"Operation Unsuccessful: %@", responseMessage);
        
    }
    
}];

Clone this wiki locally