5 sed -r 's/%([^%]*)%([^%]*)%/\1/' demo.sql.pp
> demo_mysql.sql
6 sed -r 's/%([^%]*)%([^%]*)%/\2/' demo.sql.pp
> demo_sqlite3.sql
8 SQLGG
=..
/_build
/src
/cli.native
9 [ -x "$SQLGG" ] || SQLGG
=sqlgg
11 $SQLGG -gen cxx
-params named demo_sqlite3.sql
> demo_cxx_gen.hpp
12 $SQLGG -gen caml
-params named demo_sqlite3.sql
> demo_caml_gen.ml
13 $SQLGG -gen xml
-params named demo_sqlite3.sql
> demo_xml_gen.xml
15 $SQLGG -gen cxx
-params unnamed demo_mysql.sql
> demo_cxx_gen_mysql.hpp
16 $SQLGG -gen caml
-params unnamed demo_mysql.sql
> demo_caml_gen_mysql.ml
17 $SQLGG -gen java
-params unnamed
-name demo_java_gen demo_mysql.sql
> demo_java_gen.java
18 $SQLGG -gen csharp
-params unnamed demo_mysql.sql
> demo_csharp_gen.cs
20 g
++ -Wall -DSQLGG_DEBUG -g -o demo_cxx demo_cxx.cpp
-lsqlite3
22 cp ..
/impl
/ocaml
/sqlgg_traits.ml .
23 cp ..
/impl
/ocaml
/sqlite
3/sqlgg_sqlite3.ml .
24 cp ..
/impl
/ocaml
/mysql
/sqlgg_mysql.ml .
25 ocamlfind c
-linkpkg -package sqlite3
-w Alse
-g -o demo_caml sqlgg_sqlite3.ml sqlgg_traits.ml demo_caml_gen.ml demo_caml.ml
26 # requires ocaml-mysql >= 1.1.0
27 ocamlfind c
-linkpkg -package mysql
-w Alse
-g -o demo_caml_mysql sqlgg_mysql.ml sqlgg_traits.ml demo_caml_gen_mysql.ml demo_caml_mysql.ml
29 g
++ -Wall -DSQLGG_DEBUG -g -o demo_cxx_mysql demo_cxx_mysql.cpp
-lmariadbclient
33 gmcs
-r:System.Data
-r:MySql.Data demo_csharp.cs demo_csharp_gen.cs