|
|
|
@ -7,14 +7,14 @@ export function useColumn(column: Ref<ColumnType>) {
|
|
|
|
|
const { project } = useProject() |
|
|
|
|
|
|
|
|
|
const uiDatatype: ComputedRef<UITypes> = computed(() => column?.value?.uidt as UITypes) |
|
|
|
|
const abstractType = computed(() => |
|
|
|
|
const abstractType = computed(() => { |
|
|
|
|
// kludge: CY test hack; column.value is being received NULL during attach cell delete operation
|
|
|
|
|
isVirtualCol(column?.value) || !column?.value |
|
|
|
|
return isVirtualCol(column?.value) || !column?.value |
|
|
|
|
? null |
|
|
|
|
: SqlUiFactory.create( |
|
|
|
|
project.value?.bases?.[0]?.config ? { client: project.value.bases[0].config.type } : { client: 'mysql2' }, |
|
|
|
|
).getAbstractType(column?.value), |
|
|
|
|
) |
|
|
|
|
project.value?.bases?.[0]?.config ? { client: project.value.bases[0].type } : { client: 'mysql2' }, |
|
|
|
|
).getAbstractType(column?.value) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const dataTypeLow = computed(() => column?.value?.dt?.toLowerCase()) |
|
|
|
|
const isBoolean = computed(() => abstractType.value === 'boolean') |
|
|
|
|