mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25:36 -05:00
* Adding derived column boilerplate * brandan preliminary frontend changes * empty commit * added new param * updating contracts, dialogue changes * utils changes, saving timeout attempt * pushing for aasim * Cleaning up code and fixing the issue in theory * changing button, did not solve independent scroll * Fixing the scroll bar issue * updating flat file service * adding override keyword to overrriden method * improving UI * pushing changes associated with resolved comments * localizing strings, editing comments * all comments resolved * Fixing a test * updating import package Updating azure MFA bug * Clearing navigation validator Fixing broken table name change * fixed prose test * removing unused code from tests * Fixed PR comments * Fixing some PR comments * WIP * Fixing transformation code and create derived column dialog styling * removing unused code * Adding comment for console log * fixed table styling * Adding some aria labels * Fixed some code cleanup issues * update import service Co-authored-by: Aasim Khan <aasimkhan30@gmail.com> Co-authored-by: bnhoule <t-bhoule@microsoft.com>
37 lines
1009 B
TypeScript
37 lines
1009 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as azdata from 'azdata';
|
|
|
|
/**
|
|
* The main data model that communicates between the pages.
|
|
*/
|
|
export interface ImportDataModel {
|
|
server: azdata.connection.Connection;
|
|
serverId: string;
|
|
ownerUri: string;
|
|
proseColumns: ColumnMetadata[];
|
|
proseDataPreview: string[][];
|
|
database: string;
|
|
table: string;
|
|
schema: string;
|
|
filePath: string;
|
|
fileType: string;
|
|
originalProseColumns: ColumnMetadata[];
|
|
newFileSelected: boolean;
|
|
}
|
|
|
|
/**
|
|
* Metadata of a column
|
|
*/
|
|
export interface ColumnMetadata {
|
|
columnName: string;
|
|
dataType: string;
|
|
primaryKey: boolean;
|
|
nullable: boolean;
|
|
}
|
|
|
|
export type ColumnMetadataArray = (string | number | boolean)[];
|