Re: [Mysql-cocoa-users] MCPQuery
Brought to you by:
sergecohen
|
From: Aaron J. <aj...@ed...> - 2004-08-13 23:38:01
|
Serge, Will you be releasing this layer under the GPL? Also, where can I get=20= a copy of your GPG key? Aaron On Aug 13, 2004, at 6:35 PM, Serge Cohen wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi; > > Do people feel like it would be nice to have a repository of code=20 > contributed by SMySQL users? > How many people on this list would be interested in sharing some of=20 > there code, so that there's a place to look for some examples=20 > sources... > > Serge. > > PS: Note that I'm developping some kind of enterprise layer on top of=20= > SMySQL. This is a way to easily use a MySQL DB server to ensure=20 > persistence of your data, providing an easy way to map an object (of a=20= > given class) to a row (of a precise table, depending on the class of=20= > the object). > Then the MCPQuery you're developping can become some how (in EOF=20 > parlance) a FetchSpecification... But I'm not there yet! > > > Le 13 ao=FBt 04, =E0 17:51, Aaron Jacobs a =E9crit : > >> Sounds like an interesting idea. Based on your method declarations,=20= >> this seems to really just be a collection of functions - there's=20 >> nothing object oriented about it. I recommend making this into an=20 >> actual object, and modifying the SMySQL methods to take MCPQuery=20 >> objects instead of NSStrings. That might open up some more=20 >> interesting possibilities. >> >> Aaron >> >> >> >> On Aug 13, 2004, at 4:39 PM, Camille GOUREAU-SUIGNARD wrote: >> >>> Hi, >>> >>> I've created (part of) a classe I called MCPQuery. >>> It provides me query (NSString*) when feeded with information. >>> Has one of you already worked on such a thing ? >>> Is it a non sense ? >>> Is there a better way to avoid re-writing the sames lines of code ? >>> >>> Here are the functions I implemented : >>> >>> + (NSString*) selectQueryWithSelect: (NSDictionary*) fields=20 >>> andWhere: (NSString*) where ; >>> // returns a "select from xhere" string with the fields = extracted=20 >>> from fields and the from also >>> + (NSString*) fromStringWithFields: (NSDictionary*) fields ; >>> + (NSString*) queryEmptyInsertInTable: (NSString*) table ; >>> + (NSString*) queryShowColumnsFromTable: (NSString*) table ; >>> + (NSString*) queryUpdateFields: (NSDictionary*) fields inTable:=20 >>> (NSString*) table where: (NSString*) where ; >>> + (NSString*) queryInsertFields: (NSDictionary*) fields inTable:=20 >>> (NSString*) table ; >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank=20 >>> Media >>> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >>> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >>> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >>> _______________________________________________ >>> Mysql-cocoa-users mailing list >>> Mys...@li... >>> https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users >>> > ******************************************* > Serge Cohen > > GPG Key ID: 9CBB58FB > ******************************************* > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (Darwin) > > iD8DBQFBHVBk5EPeG5y7WPsRAnlpAKC/dXhR3e+0W653LDYtET5n59zCyACg7+Bk > NqLQQRRIT14oy1HzDxSpdkE=3D > =3DMeoT > -----END PGP SIGNATURE----- > |