fixed Data import from files #633

This commit is contained in:
Jan Prochazka
2023-09-30 10:28:54 +02:00
parent c75ae033ba
commit a98d5d29ca
3 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import type { TableInfo } from 'dbgate-types';
export interface FreeTableModel {
structure: TableInfo;
rows: any[];
}
export function createFreeTableModel() {
return {
structure: {
columns: [
{
columnName: 'col1',
},
],
foreignKeys: [],
},
rows: [
{
col1: 'val1',
},
{
col1: 'val2',
},
],
};
}