Re: [Cppcms-users] UUID data type (primary key) in ccpdb
Brought to you by:
artyom-beilis
From: Alec T. <ale...@gm...> - 2012-01-17 10:44:58
|
On Tue, Jan 17, 2012 at 9:23 PM, Artyom Beilis <art...@ya...> wrote: >> From: Leon <le...@wl...> > >>To: cpp...@li... >>Sent: Tuesday, January 17, 2012 11:59 AM >>Subject: Re: [Cppcms-users] UUID data type (primary key) in ccpdb >> >>Thank you very much for the answer! Is native uuid data types going to >>be supported? >> > > What is "Native UUID" ? > > 1. C++ does not define UUID type. > > 2. SQL Standard does not define UUID type as well. > > > The "native" data representation in CppDB and in most of Sql drivers > is string so UUID is already natively supported. > > For example this code with mysql > > > std::string uuid; > sql << "select UUID();" << cppdb::row >> uuid; > std::cout << uuid << std::endl; > > > Prints very nice UUID for you... Efficiency crumbles! > > > > Artyom > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |