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

Add some MYSQL types to the ddl2cpp script

This commit is contained in:
Brett-Michael Green 2020-06-16 17:15:47 -04:00 committed by Roland Bock
parent 2b5f8d7666
commit cab4bc79ed

View File

@ -271,6 +271,7 @@ types = {
'float4': 'floating_point', # PostgreSQL
'real': 'floating_point',
'numeric': 'floating_point', # PostgreSQL
'decimal' : 'floating_point', # MYSQL
'date': 'day_point',
'datetime': 'time_point',
'time': 'time_of_day',
@ -282,6 +283,7 @@ types = {
'timestamptz': 'time_point', # PostgreSQL
'enum': 'text', # MYSQL
'set': 'text', # MYSQL,
'longtext' : 'text', #MYSQL
'json' : 'text', # PostgreSQL
'jsonb' : 'text', # PostgreSQL
'tinyint unsigned': 'tinyint_unsigned', #MYSQL