//
//  DataModeller.h
//  DatabaseExample
//
//  Created by Bernard Teo on 27/06/2007.
//  Copyright 2007 Cutedge. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import <CEDatabaseMySQL/CEDatabaseMySQL.h>
#import <CEDatabaseSQLite/CEDatabaseSQLite.h>
#import <CEDatabasePostgreSQL/CEDatabasePostgreSQL.h>

@interface DataModeller : NSObject 
{
	CEDatabase *connection;
	NSString *databaseType;
	NSString *database;
}

+ (id)dataModellerWithConnectionForDatabaseDriver:(NSString *)driver url:(NSString *)url databaseName:(NSString *)databaseName user:(NSString *)user password:(NSString *)password;
- (id)initForDatabaseDriver:(NSString *)driver url:(NSString *)url databaseName:(NSString *)databaseName user:(NSString *)user password:(NSString *)password;
- (void)dealloc;

- (void)setConnection:(CEDatabase *)value;
- (void)setDatabaseType:(NSString *)value;
- (NSString *)databaseType;
- (void)setDatabase:(NSString *)value;
- (NSString *)database;

- (NSMutableArray *)lookup:(NSString *)queryString;
- (void)execute:(NSString *)queryString;

@end
