mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 02:02:35 -05:00
* Moved dacfx wizard into separate extension * updating to use azdata * one more azdata change * bump import extension version * renaming extension to dacpac
34 lines
889 B
TypeScript
34 lines
889 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
'use strict';
|
|
|
|
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;
|
|
}
|
|
|
|
/**
|
|
* Metadata of a column
|
|
*/
|
|
export interface ColumnMetadata {
|
|
columnName: string;
|
|
dataType: string;
|
|
primaryKey: boolean;
|
|
nullable: boolean;
|
|
}
|