C/C++
custom.txt
Associated article: Supporting Custom C++ Types
Tags: C/C++ Database Open Source
Published source code accompanying the article by Stephen Hutton in which he discusses traits- -a powerful technique that lets you create arbitrary user-defined types, among other things. Also see CUSTOM.ZIP.
Supporting Custom C++ Types
by Stephen Hutton
// Listing One
#include <soci.h>
#include <iostream>
#include <string>
using namespace SOCI;
using std::string;
int main()
{
try
{
Session sql("oracle", "service=gen1 user=...


