[Mysql-cocoa-users] NEW: Version-2 in CVS
Brought to you by:
sergecohen
From: Serge C. <co...@em...> - 2002-06-03 14:52:27
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear Users; I've just made a branch on CVS, it's called version-2 and contains a lot of new features, mainly the one which have been proposed and discussed onthis list. There is no downloadable packages yet (only CVS), because I did not have time to test it (except the SMySQL_Test tool, which does not test most of the new features). The new features are mainly (describe in TO_DO of the version-2 project): ++++++++++ 1. The prefix has been changed to the shorter MCP (for MySQL Cocoa Project). 2. Handling NULL fields: - - Create a "MCPNSNull" category for NSObject with only one method : isNSNull (Being able to check if any object returned by SMySQL is a NSNull) 3. MCPResult: Centralising the field type recognition and filling of proper objects: - - A single method doing the work : fetchRowAsType:(MCPReturnType) aType; - - Wrapper for getting rows as Dictionnary or Array. - - Again with fetchTypesAsType: (MCPReturnType) aType; + wrappers 4.Making a category for additional (optional) methods (MCPResultPlus): - - Getting a single column: - (NSArray *) fetchColAtIndex:(unsigned int) aCol; - (NSArray *) fetchColWithName:(NSString *) aColName; (Wrapping the previous one) - - Adding bidimensional array data retrieval (in a Category?) 5.MCPConnection Making a category to add some useful (but not mandatory) features (MCPFastQueries): - - (id) getFirstFieldFromQuery:(NSString *) query; (Frist column of first row of the result) - - (id) getFirstRowFromQuery:(NSString *) query asType:(MCPReturnType) aType; (obvious) - - (NSArray *) getAllRowsFromQuery:(NSString *) query asType:(MCPReturnType) aType; (using 2D possibility of MCPResult) - - (NSArray *) getQuery:(NSString *) query colWithIndex:(unsigned int) aCol; (Getting a single column form the query) - - (NSArray *) getQuery:(NSString *) query colWithName:(NSString *) aColName; ++++++++++ It would be great if some of you can test it (even better modify SMySQL_Test coming with it to do these tests) and give me feed back about the way the framework works. Once this is done, I'll do a release, most likely 2.0.0 In the mean time I'm jst going to correct the version 0.7.0 to take of the NULL Field bug. I will then pomote it to version 1.0.0 Looking forward to read many comments. Serge. - ---------------------------------------------------- Serge Cohen GPG Key ID: 1024D/69B1D346 - ---------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (Darwin) Comment: For info see http://www.gnupg.org iD8DBQE8+4NQMygj1Wmx00YRAi0rAJ9SMtnePd/gJZB7R1mg49AHiGx4xQCeJ6KE LK9d0yeilNmAGGna7yzDSow= =TZap -----END PGP SIGNATURE----- |