-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wren-ui): Align column types with backend connectors provided typ…
…es (#216) * fix(wren-ui): align column types with connectors provided types, add UUID icon & Binary icon * fix(wren-ui): update calculated field functions types checking
- Loading branch information
1 parent
db42d07
commit c00ec4c
Showing
4 changed files
with
106 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,62 @@ | ||
// Refer to backend connector types: | ||
// src/apollo/server/connectors/types.ts | ||
|
||
export enum COLUMN_TYPE { | ||
// Boolean | ||
// Boolean Types | ||
BOOLEAN = 'BOOLEAN', | ||
|
||
// Date and Time | ||
DATE = 'DATE', | ||
TIME = 'TIME', | ||
TIMESTAMP = 'TIMESTAMP', | ||
DATETIME = 'DATETIME', | ||
|
||
// Integer | ||
INTEGER = 'INTEGER', | ||
// Numeric Types | ||
TINYINT = 'TINYINT', | ||
SMALLINT = 'SMALLINT', | ||
BIGINT = 'BIGINT', | ||
INT = 'INT', | ||
NUMBER = 'NUMBER', | ||
|
||
// Floating-Point | ||
DOUBLE = 'DOUBLE', | ||
REAL = 'REAL', | ||
INT2 = 'INT2', | ||
SMALLINT = 'SMALLINT', // alias for INT2 | ||
|
||
INT4 = 'INT4', | ||
INTEGER = 'INTEGER', // alias for INT4 | ||
|
||
// Fixed-Precision | ||
INT8 = 'INT8', | ||
BIGINT = 'BIGINT', // alias for INT8 | ||
|
||
NUMERIC = 'NUMERIC', | ||
DECIMAL = 'DECIMAL', | ||
|
||
// String | ||
// Floating-Point Types | ||
FLOAT4 = 'FLOAT4', | ||
REAL = 'REAL', // alias for FLOAT4 | ||
|
||
FLOAT8 = 'FLOAT8', | ||
DOUBLE = 'DOUBLE', // alias for FLOAT8 | ||
|
||
// Character Types | ||
VARCHAR = 'VARCHAR', | ||
CHAR = 'CHAR', | ||
BPCHAR = 'BPCHAR', // BPCHAR is fixed-length, blank padded string | ||
TEXT = 'TEXT', // alias for VARCHAR | ||
STRING = 'STRING', // alias for VARCHAR | ||
NAME = 'NAME', // alias for VARCHAR | ||
|
||
// Date/Time Types | ||
TIMESTAMP = 'TIMESTAMP', | ||
TIMESTAMPTZ = 'TIMESTAMP WITH TIME ZONE', | ||
DATE = 'DATE', | ||
INTERVAL = 'INTERVAL', | ||
|
||
// JSON Types | ||
JSON = 'JSON', | ||
TEXT = 'TEXT', | ||
VARBINARY = 'VARBINARY', | ||
VARCHAR = 'VARCHAR', | ||
STRING = 'STRING', | ||
|
||
// Mongo DB | ||
MONGO_ARRAY = 'ARRAY', | ||
MONGO_ROW = 'ROW', | ||
// Object identifiers (OIDs) are used internally by PostgreSQL as primary keys for various system tables. | ||
// https://www.postgresql.org/docs/current/datatype-oid.html | ||
OID = 'OID', | ||
|
||
// Binary Data Types | ||
BYTEA = 'BYTEA', | ||
|
||
// UUID Type | ||
UUID = 'UUID', | ||
|
||
// Network Address Types | ||
INET = 'INET', | ||
|
||
// Unknown Type | ||
UNKNOWN = 'UNKNOWN', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters