package sqlgg

  1. Overview
  2. Docs
SQL Guided (code) Generator

Install

dune-project
 Dependency

Authors

Maintainers

Sources

sqlgg-20260721.tbz
sha256=40d7699187951dd2f17d885c4f4f04124930bf7dc1119d4cca322c5f0cb42d8e
sha512=e7c90683cddcff3ca0ba9de9e40c2c4c69923ea62e2647f1a70083e42ed00b7cab53f8a14d1a965ee4465966bc02fa75fa7cb42e485beae1a9c26bdc252c3665

Description

sqlgg is an SQL query parser and binding code generator for C#, C++, Java, OCaml. It starts off with SQL schema and queries, and generates code (or XML, allowing further code generation for various purposes). Generated code only defines a mapping of output columns and query parameters to the host language, trying to be as unobtrusive as possible and leaving the choice of SQL database (and API to access it) to the developer.

Tags

org:ygrek

Published: 25 Jul 2026

README

sqlgg: SQL Guided (code) Generator

Build Status Build status

Homepage at https://ygrek.org/p/sqlgg/

Install with opam install sqlgg

sqlgg is sql query parser and code generator. See homepage for detailed description and rationale.

Documentation

Documentation with a list of features is available doc.md. More advanced documentation is here, but it is a work in progress and not completely ready.

Development

Install dependencies with opam install --deps-only .

Buld with make

Conditions

Copyright (c) 2009 ygrek <ygrek@autistici.org>

This project is distributed under the terms of GPL Version 2. See LICENSE file for full license text.

Example code in demo/ and example/ and database specific bindings in impl/ are released into public domain.
See UNLICENSE file in each of the above directories for more information.

NB the output of sqlgg, i.e. the generated code, is all yours of course :)


2018-04-26

Dependencies (12)

  1. ounit
  2. base-unix
  3. extlib-compat >= "1.7.8"
  4. extlib >= "1.7.8"
  5. ppxlib >= "0.36.2"
  6. ppx_deriving >= "4.3"
  7. mybuild > "3"
  8. menhir >= "20180523"
  9. integers >= "0.4.0"
  10. dune >= "2.7"
  11. yojson >= "1.6.0"
  12. ocaml >= "4.13.0"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts (1)

  1. mariadb <= "1.3.0"