mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-08 01:15:00 +00:00
Start adding ANSI SQL types
This commit is contained in:
parent
ac130577c1
commit
751a6f0880
1 changed files with 16 additions and 0 deletions
|
@ -89,6 +89,22 @@ pub struct SQLColumnDef {
|
||||||
/// SQL datatypes for literals in SQL statements
|
/// SQL datatypes for literals in SQL statements
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub enum SQLType {
|
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,
|
Boolean,
|
||||||
UInt8,
|
UInt8,
|
||||||
UInt16,
|
UInt16,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue