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.
Published: 26 May 2020
sqlgg: SQL Guided (code) Generator
Homepage at https://ygrek.org/p/sqlgg/
opam install sqlgg
sqlgg is sql query parser and code generator. See homepage for detailed description and rationale.
Install dependencies with
opam install --deps-only .
Copyright (c) 2009 ygrek <firstname.lastname@example.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 :)