0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Updated README, added link to Ruby code generator.

This commit is contained in:
Roland Bock 2016-07-09 20:18:34 +02:00 committed by GitHub
parent 3aca4cb826
commit cc720c5738

View File

@ -157,16 +157,15 @@ mysql: 'show create table MyDatabase.MyTable' #or
mysqldump --no-data MyDatabase > MyDatabase.sql mysqldump --no-data MyDatabase > MyDatabase.sql
``` ```
Create headers for them with provided python script: Create headers for them with provided Python script:
``` ```
%sqlpp11_dir%/scripts/ddl2cpp ~/temp/MyTable.ddl ~/temp/MyTable %DatabaseNamespaceForExample% %sqlpp11_dir%/scripts/ddl2cpp ~/temp/MyTable.ddl ~/temp/MyTable %DatabaseNamespaceForExample%
``` ```
(In case you're getting notes about unsupported column type take a look at the other datatypes in sqlpp11/data_types. They are not hard to implement.) (In case you're getting notes about unsupported column type take a look at the other datatypes in sqlpp11/data_types. They are not hard to implement.)
Include generated header (MyTable.h), that's all Include generated header (MyTable.h), that's all.
If you prefer Ruby over Python, you might want to take a look at https://github.com/douyw/sqlpp11gen
License: License:
------------- -------------