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:
parent
2b5f8d7666
commit
cab4bc79ed
@ -271,6 +271,7 @@ types = {
|
|||||||
'float4': 'floating_point', # PostgreSQL
|
'float4': 'floating_point', # PostgreSQL
|
||||||
'real': 'floating_point',
|
'real': 'floating_point',
|
||||||
'numeric': 'floating_point', # PostgreSQL
|
'numeric': 'floating_point', # PostgreSQL
|
||||||
|
'decimal' : 'floating_point', # MYSQL
|
||||||
'date': 'day_point',
|
'date': 'day_point',
|
||||||
'datetime': 'time_point',
|
'datetime': 'time_point',
|
||||||
'time': 'time_of_day',
|
'time': 'time_of_day',
|
||||||
@ -282,6 +283,7 @@ types = {
|
|||||||
'timestamptz': 'time_point', # PostgreSQL
|
'timestamptz': 'time_point', # PostgreSQL
|
||||||
'enum': 'text', # MYSQL
|
'enum': 'text', # MYSQL
|
||||||
'set': 'text', # MYSQL,
|
'set': 'text', # MYSQL,
|
||||||
|
'longtext' : 'text', #MYSQL
|
||||||
'json' : 'text', # PostgreSQL
|
'json' : 'text', # PostgreSQL
|
||||||
'jsonb' : 'text', # PostgreSQL
|
'jsonb' : 'text', # PostgreSQL
|
||||||
'tinyint unsigned': 'tinyint_unsigned', #MYSQL
|
'tinyint unsigned': 'tinyint_unsigned', #MYSQL
|
||||||
|
Loading…
Reference in New Issue
Block a user