Name: ocaml-pgocaml-introduction Version: 0.94 Release: %mkrel 5 Summary: A Brief Introduction to PG'OCaml License: CC-by-sa-3.0 Group: Documentation URL: http://www.dse.nl/~dario/projects/pgoctut/ Source0: http://www.dse.nl/~dario/projects/pgoctut/pgoctut.%{version}.pdf.lzma # Real link: http://www.dse.nl/~dario/projects/pgoctut/pgoctut.pdf BuildArch: noarch %description PG'OCaml, by Richard W. M. Jones, provides an interface to PostgreSQL databases for OCaml applications. It uses Camlp4 to extend the OCaml syntax, enabling one to directly embed SQL statements inside the OCaml code. Moreover, it uses the describe feature of PostgreSQL to obtain type information about the database. This allows PG'OCaml to check at compile-time if the programme is indeed consistent with the database structure. This type-safe database access is the primary advantage that PG'OCaml has over other PostgreSQL bindings for OCaml. Unfortunately, PG'OCaml is rather lacking on the documentation front. This document aims to fill that gap, by providing an overview of the capabilities of the library, usage examples, and solutions to potential pitfalls. Moreover, it also addresses the installation of PG'OCaml, how to compile programmes that make use of the library, and the correspondence between PostgreSQL data types and their OCaml counterparts. %prep lzcat %{SOURCE0} > pgoctut.pdf %build %install %define destdir %{_datadir}/doc/%{name} mkdir -p %{buildroot}%{destdir} install -d -m 755 %{buildroot}%{destdir} install -m 644 pgoctut.pdf %{buildroot}%{destdir}/ %files %dir %{destdir} %{destdir}/pgoctut.pdf %changelog * Wed Oct 15 2014 umeabot <umeabot> 0.94-5.mga5 + Revision: 750521 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 0.94-4.mga5 + Revision: 683086 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 0.94-3.mga4 + Revision: 508525 - Mageia 4 Mass Rebuild * Sun Jan 13 2013 umeabot <umeabot> 0.94-2.mga3 + Revision: 361568 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Oct 02 2012 blue_prawn <blue_prawn> 0.94-1.mga3 + Revision: 302033 - updated to last version 0.94 - updated to last version 0.94 - new rpm group for ocaml * Fri Mar 23 2012 blue_prawn <blue_prawn> 0.92-1.mga2 + Revision: 225874 - imported from Mandriva * Sat Aug 22 2009 Florent Monnier <blue_prawn@mandriva.org> + Revision: 419704 - noarch * Thu Jan 29 2009 Florent Monnier <blue_prawn@mandriva.org> + Revision: 335199 - source format * Thu Jan 29 2009 Florent Monnier <blue_prawn@mandriva.org> + Revision: 335198 - source format * Thu Jan 29 2009 Florent Monnier <blue_prawn@mandriva.org> + Revision: 335189 - import ocaml-pgocaml-introduction