简体   繁体   English

wxWidgets应用程序中的SOCI数据类型

[英]SOCI data types in wxWidgets applications

I have started a new simple wxWidgets application, and then added support to firebird database acces using SOCI. 我已经启动了一个新的简单wxWidgets应用程序,然后使用SOCI为firebird数据库访问权限添加了支持。 I want to know if it is possible to use data types like wxString and wxDateTime bacause I have already designed my table structre with'em. 我想知道是否可以使用的数据类型,如wxStringwxDateTime bacause我已经设计我的表结构法with'em。

TIA. TIA。

It's definitely possible to do this, but you will have to write soci::type_conversion<> specializations for these types yourself. 绝对可能这样做,但是您必须自己为这些类型编写soci::type_conversion<>专业化。 This is quite straightforward, at least if you assume that strings are always encoded using UTF-8 in the database. 这非常简单,至少在您假设数据库中始终使用UTF-8对字符串进行编码的情况下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM