Constants.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import { KeyValuePair } from '../../types/Common';
  2. import { DataTypeEnum, ConsistencyLevelEnum } from '@/consts';
  3. export const CONSISTENCY_LEVEL_OPTIONS: KeyValuePair[] = [
  4. {
  5. label: 'Strong',
  6. value: ConsistencyLevelEnum.Strong,
  7. },
  8. {
  9. label: 'Session',
  10. value: ConsistencyLevelEnum.Session,
  11. },
  12. {
  13. label: 'Bounded',
  14. value: ConsistencyLevelEnum.Bounded,
  15. },
  16. {
  17. label: 'Eventually',
  18. value: ConsistencyLevelEnum.Eventually,
  19. },
  20. ];
  21. export const VECTOR_FIELDS_OPTIONS: KeyValuePair[] = [
  22. {
  23. label: 'Binary Vector',
  24. value: DataTypeEnum.BinaryVector,
  25. },
  26. {
  27. label: 'Float Vector',
  28. value: DataTypeEnum.FloatVector,
  29. },
  30. ];
  31. export const ALL_OPTIONS: KeyValuePair[] = [
  32. // ...VECTOR_FIELDS_OPTIONS,
  33. {
  34. label: 'Int8',
  35. value: DataTypeEnum.Int8,
  36. },
  37. {
  38. label: 'Int16',
  39. value: DataTypeEnum.Int16,
  40. },
  41. {
  42. label: 'Int32',
  43. value: DataTypeEnum.Int32,
  44. },
  45. {
  46. label: 'Int64',
  47. value: DataTypeEnum.Int64,
  48. },
  49. {
  50. label: 'Float',
  51. value: DataTypeEnum.Float,
  52. },
  53. {
  54. label: 'Double',
  55. value: DataTypeEnum.Double,
  56. },
  57. {
  58. label: 'Boolean',
  59. value: DataTypeEnum.Bool,
  60. },
  61. {
  62. label: 'VarChar',
  63. value: DataTypeEnum.VarChar,
  64. },
  65. {
  66. label: 'JSON',
  67. value: DataTypeEnum.JSON,
  68. },
  69. {
  70. label: 'Array',
  71. value: DataTypeEnum.Array,
  72. },
  73. ];
  74. export const AUTO_ID_OPTIONS: KeyValuePair[] = [
  75. {
  76. label: 'On',
  77. value: 'true',
  78. },
  79. {
  80. label: 'Off',
  81. value: 'false',
  82. },
  83. ];
  84. export const PRIMARY_FIELDS_OPTIONS: KeyValuePair[] = [
  85. {
  86. label: 'INT64',
  87. value: DataTypeEnum.Int64,
  88. },
  89. {
  90. label: 'VARCHAR',
  91. value: DataTypeEnum.VarChar,
  92. },
  93. ];