Re: [Cppcms-users] UUID data type (primary key) in ccpdb
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-01-17 10:23:48
|
> 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... Artyom |