Skip to content
Snippets Groups Projects
Commit c31b3896 authored by Cam Saül's avatar Cam Saül
Browse files

type mappings

parent df7f0ca7
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,36 @@
(metabase.driver.generic-sql [interface :refer :all])))
(def ^:private ^:const column->base-type
{})
{:bigint :BigIntegerField
:binary :UnknownField
:bit :UnknownField
:blob :UnknownField
:char :CharField
:date :DateField
:datetime :DateTimeField
:decimal :DecimalField
:double :FloatField
:enum :UnknownField
:float :FloatField
:int :IntegerField
:integer :IntegerField
:longblob :UnknownField
:longtext :TextField
:mediumblob :UnknownField
:mediumint :IntegerField
:mediumtext :TextField
:numeric :DecimalField
:real :FloatField
:set :UnknownField
:text :TextField
:time :TimeField
:timestamp :DateTimeField
:tinyblob :UnknownField
:tinyint :IntegerField
:tinytext :TextField
:varbinary :UnknownField
:varchar :CharField
:year :IntegerField})
(defrecord MySQLDriver []
ISqlDriverDatabaseSpecific
......
......@@ -11,9 +11,9 @@
FieldDefinition
TableDefinition)))
(def ^:private ^:const field-base-type->sql-type ;; TODO
(def ^:private ^:const field-base-type->sql-type
{:BigIntegerField "BIGINT"
:BooleanField "BOOL"
:BooleanField "BOOL" ;; TODO
:CharField "VARCHAR(254)"
:DateField "DATE"
:DateTimeField "TIMESTAMP"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment