mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-15 06:08:37 +01:00
Add Timestamp type to cassandra column types and wrap Timestamp value inside single quotes when creating queries (#1163)
This commit is contained in:
parent
1155557af1
commit
94a03e5b03
@ -33,6 +33,7 @@ const {
|
|||||||
Inet,
|
Inet,
|
||||||
Smallint,
|
Smallint,
|
||||||
Tinyint,
|
Tinyint,
|
||||||
|
Timestamp,
|
||||||
} = TableConstants.CassandraType;
|
} = TableConstants.CassandraType;
|
||||||
export const cassandraOptions = [
|
export const cassandraOptions = [
|
||||||
{ key: Text, text: Text },
|
{ key: Text, text: Text },
|
||||||
@ -50,6 +51,7 @@ export const cassandraOptions = [
|
|||||||
{ key: Inet, text: Inet },
|
{ key: Inet, text: Inet },
|
||||||
{ key: Smallint, text: Smallint },
|
{ key: Smallint, text: Smallint },
|
||||||
{ key: Tinyint, text: Tinyint },
|
{ key: Tinyint, text: Tinyint },
|
||||||
|
{ key: Timestamp, text: Timestamp },
|
||||||
];
|
];
|
||||||
|
|
||||||
export const imageProps: IImageProps = {
|
export const imageProps: IImageProps = {
|
||||||
|
@ -19,6 +19,7 @@ export const CassandraType = {
|
|||||||
Float: "Float",
|
Float: "Float",
|
||||||
Int: "Int",
|
Int: "Int",
|
||||||
Text: "Text",
|
Text: "Text",
|
||||||
|
Timestamp: "Timestamp",
|
||||||
Uuid: "Uuid",
|
Uuid: "Uuid",
|
||||||
Varchar: "Varchar",
|
Varchar: "Varchar",
|
||||||
Varint: "Varint",
|
Varint: "Varint",
|
||||||
|
@ -535,7 +535,8 @@ export class CassandraAPIDataClient extends TableDataClient {
|
|||||||
dataType === TableConstants.CassandraType.Text ||
|
dataType === TableConstants.CassandraType.Text ||
|
||||||
dataType === TableConstants.CassandraType.Inet ||
|
dataType === TableConstants.CassandraType.Inet ||
|
||||||
dataType === TableConstants.CassandraType.Ascii ||
|
dataType === TableConstants.CassandraType.Ascii ||
|
||||||
dataType === TableConstants.CassandraType.Varchar
|
dataType === TableConstants.CassandraType.Varchar ||
|
||||||
|
dataType === TableConstants.CassandraType.Timestamp
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user