gen_cxx: use callbacks to iterate rowset
[sqlgg.git] / example / build
blob1a01e9d20ab71dc4b99fbc28fc611b7d532c83c2
1 #! /bin/bash
3 set -e -u
5 ../sqlgg.byte -gen cxx test.sql > test_cxx_gen.hpp
6 g++ -g -o test_cxx test_cxx.cpp -lsqlite3
8 ../sqlgg.byte -gen caml test.sql > test_caml_gen.ml
9 ocamlc -w Alse -g -o test_caml -I ../impl -I +sqlite3 sqlite3.cma ../impl/sqlgg_sqlite3.ml ../impl/sqlgg_traits.ml test_caml_gen.ml test_caml.ml