inplace editing

This commit is contained in:
Jan Prochazka
2020-03-22 18:48:48 +01:00
parent b893b344f5
commit ce1e58dbdc
5 changed files with 96 additions and 31 deletions

View File

@@ -4,7 +4,7 @@ import { ForeignKeyInfo, TableInfo, ColumnInfo, DbType } from '@dbgate/types';
import { parseFilter, getFilterType } from '@dbgate/filterparser';
import { filterName } from './filterName';
import { Select, Expression } from '@dbgate/sqltree';
import { ChangeSetFieldDefinition } from './ChangeSet';
import { ChangeSetFieldDefinition, ChangeSetRowDefinition } from './ChangeSet';
export interface DisplayColumn {
schemaName: string;
@@ -372,4 +372,13 @@ export abstract class GridDisplay {
condition: this.getChangeSetCondition(row),
};
}
getChangeSetRow(row): ChangeSetRowDefinition {
if (!this.baseTable) return null;
return {
pureName: this.baseTable.pureName,
schemaName: this.baseTable.schemaName,
condition: this.getChangeSetCondition(row),
};
}
}