Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经启动了一个新的简单 wxWidgets 应用程序,然后使用 SOCI 添加了对 firebird 数据库访问的支持。我想知道是否可以使用像wxString和这样的数据类型,wxDateTime因为我已经用它们设计了我的表结构。
wxString
wxDateTime
TIA。
绝对可以做到这一点,但是您必须soci::type_conversion<>自己为这些类型编写专业化。这非常简单,至少如果您假设字符串在数据库中始终使用 UTF-8 编码。
soci::type_conversion<>