6 int main(int argc, char **argv)
8 GLWindow glw("CCBS bigscreen", 800, 600, 32, false, 16, -1);
10 pqxx::connection conn("dbname=ccbs host=sql.samfundet.no user=ccbs password=GeT|>>B_");
11 pqxx::work t(conn, "trx");
14 pqxx::result res( t.exec("SELECT * FROM songs") );
15 for (pqxx::result::const_iterator i = res.begin(); i != res.end(); ++i) {
16 std::fprintf(stderr, "%s\n", i["title"].c_str());
19 } catch (const std::exception &e) {
20 std::fprintf(stderr, "Exception: %s\n", e.what());