From 54a0d6fc7c2835e08fc6c245e983e128ad60e2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdigitalist=2Eru=E2=80=9D?= <“strangeqargo@gmail.com”> Date: Sat, 19 Mar 2016 21:13:16 +0300 Subject: [PATCH] adding basic usage examples --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3b4c0efd..8565b2f4 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,16 @@ sqlpp11 requires a certain api in order to connect with the database, see databa __Date Library:__ sqlpp11 requires [Howard Hinnant's date library](https://github.com/HowardHinnant/date) for `date` and `date_time` data types. +__Linux install:__ +git clone date library, needed connectors, cmake and make install them. + +__Basic usage:__ +create DDL files (mysql: 'show create table MyTable'), create headers for them with provided python script: +``` +%sqlpp11_dir%/scripts/ddl2cpp ~/temp/MyTable.ddl ~/temp/MyTable %DatabaseNamespaceForExample% +``` +include generated header (MyTable.h), that's all + To demonstrate that sqlpp11 can work with other backends as well, here is an experimental backend for structs in standard containers: * STL Container: https://github.com/rbock/sqlpp11-connector-stl