From 751a6f0880a63cf997cda0405b269e34eea6e3e6 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Mon, 3 Sep 2018 10:04:29 -0600 Subject: [PATCH] Start adding ANSI SQL types --- src/sqlast.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/sqlast.rs b/src/sqlast.rs index d147aecc..a3652f14 100644 --- a/src/sqlast.rs +++ b/src/sqlast.rs @@ -89,6 +89,22 @@ pub struct SQLColumnDef { /// SQL datatypes for literals in SQL statements #[derive(Debug, Clone, PartialEq)] pub enum SQLType { + /// Fixed-length character type e.g. CHAR(10) + Char(usize), + /// Variable-length character type e.g. VARCHAR(10) + Varchar(usize), + /// Large character object e.g. CLOB(1000) + Clob(usize), + /// Fixed-length binary type e.g. BINARY(10) + Binary(usize), + /// Variable-length binary type e.g. VARBINARY(10) + Varbinary(usize), + /// Large binary object e.g. BLOB(1000) + Blob(usize), + + + //TODO: remove these non ANSI sql stypes + Boolean, UInt8, UInt16,