//
//  BPServerDatabaseConnection.h
//  BISubstrate
//
//  Created by Michael Clark on 10-03-11.
//  Copyright 2010 Marketcircle, Inc. All rights reserved.
//

#import <MCPostgresPersistence/MCPPostgresConnection.h>
#import <MCPostgresPersistence/MCPPGConnectionInfo.h>


@interface BPServerDatabaseConnection : MCPPostgresConnection {
	NSString* databaseUUID;
    BOOL usePythonTriggers;
	NSMutableDictionary*  connectionTableValues;  // Cached values set on the connection temp table - used on auto reconnect to re-establish the temp table
}

- (NSString *)connectionValueForKey: (NSString*)key;
- (void)setConnectionValue: (NSString *)value forKey: (NSString*)key;



@end

@interface MCPPostgresConnection (BPReplaceAddition)

- (BOOL)replaceValueForAttributeNamed:(NSString *)aAttribName from:(id)originalValue to:(id)newValue forEntityNamed:(NSString *)aName;

@end

