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

#import <Cocoa/Cocoa.h>
#import <CEDatabase/CEDatabase.h>

#import "CEResultSetSQLite.h"

@interface CEDatabaseSQLite : CEDatabase 
{
	sqlite3		*_sqlHandler;
}

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

- (id)initWithDatabase:(NSString *)database atPath:(NSString *)url;
- (void)dealloc;

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

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

@end
