Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion YapDatabase/Extensions/CloudKit/YapDatabaseCloudKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ - (YapDatabaseConnection *)completionDatabaseConnection
{
if (completionDatabaseConnection == nil)
{
completionDatabaseConnection = [self.registeredDatabase newConnection];
completionDatabaseConnection = [self.registeredDatabase newConnectionWithTag:@"YapDatabaseConnection internal completionDatabaseConnection"];
completionDatabaseConnection.objectCacheEnabled = NO;
completionDatabaseConnection.metadataCacheEnabled = NO;
}
Expand Down
2 changes: 1 addition & 1 deletion YapDatabase/Internal/YapDatabasePrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static NSString *const ext_key_class = @"class";
BOOL allKeysRemoved;
}

- (id)initWithDatabase:(YapDatabase *)database;
- (id)initWithDatabase:(YapDatabase *)database tag:(NSString *)tag;

- (sqlite3_stmt *)beginTransactionStatement;
- (sqlite3_stmt *)commitTransactionStatement;
Expand Down
4 changes: 3 additions & 1 deletion YapDatabase/YapDatabase.h
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ extern NSString *const YapDatabaseAllKeysRemovedKey;
* You should avoid creating more connections than you need.
* Creating a new connection everytime you need to access the database is a recipe for foolishness.
**/
- (YapDatabaseConnection *)newConnection;
- (YapDatabaseConnection *)newConnectionWithTag:(NSString *)tag;
+ (void)setLogToConsole:(BOOL)enabled;
+ (BOOL)logToConsole;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark Extensions
Expand Down
Loading