]> git.sesse.net Git - ccbs/blob - bigscreen/ccbs_bigscreen.cpp
Add pq++ dependency, start code for just connecting.
[ccbs] / bigscreen / ccbs_bigscreen.cpp
1 #include <cstdio>
2 #include <unistd.h>
3 #include <pqxx/pqxx>
4 #include "glwindow.h"
5
6 int main(int argc, char **argv)
7 {
8         GLWindow glw("CCBS bigscreen", 800, 600, 32, false, 16, -1);
9         try {
10                 pqxx::connection conn("dbname=ccbs host=sql.samfundet.no user=ccbs password=GeT|>>B_");
11                 pqxx::transaction<> t(conn, "trx");
12         } catch (const std::exception &e) {
13                 std::fprintf(stderr, "Exception: %s\n", e.what());
14                 exit(1);
15         }
16         
17         return 0;
18 }