//
//  CEDatabase.h
//  CEDatabase
//
//  Copyright 2006 Cutedge. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "CEResultSet.h"

@interface CEDatabase : NSObject 
{
}

+ (id)connectionWithURL:(NSString *)url database:(NSString *)database user:(NSString *)user password:(NSString *)password;

- (CEResultSet *)executeQuery:(NSString *)sqlStmt;

- (NSArray *)listDatabases;
- (NSArray *)listTablesForDatabase:(NSString *)databaseName;
- (NSArray *)indexArrayForDatabase:(NSString *)databaseName;
- (NSArray *)fieldStructureArrayForDatabase:(NSString *)databaseName table:(NSString *)tableName;
- (void)createDatabase:(NSString *)databaseName;

@end
