// Sample showing the use of database and exception objects
#include <iostream>
#include <dti/database.h>
using namespace dti::db;
int main()
{
try
{
database db("MyLife", "sa", "");
db.excute("INSERT INTO Persons VALUES ('Kristian, old boy', 36)");
db.excute("INSERT INTO Persons VALUES ('Asger, my only son', 2)");
}
catch(db_error & e)
{
std::cerr << e.what() << std::endl;
}
}