dbgate/packages/web/src/appobj/SubColumnParamList.svelte
2021-09-11 08:33:35 +02:00

18 lines
398 B
Svelte

<script lang="ts">
import { findForeignKeyForColumn } from 'dbgate-tools';
import AppObjectList from './AppObjectList.svelte';
import * as columnAppObject from './ColumnAppObject.svelte';
export let data;
</script>
<AppObjectList
list={(data.columns || []).map(col => ({
...data,
...col,
foreignKey: findForeignKeyForColumn(data, col),
}))}
module={columnAppObject}
/>