mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 17:22:59 -05:00
move publish interfaces out of sqldbproj.d.ts (#22521)
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import type * as azdataType from 'azdata';
|
||||
import { ISqlProjectPublishSettings, ISqlConnectionProperties } from 'sqldbproj';
|
||||
import { ISqlConnectionProperties } from 'sqldbproj';
|
||||
import { IAzureAccountSession } from 'vscode-mssql';
|
||||
import { ISqlProjectPublishSettings } from './publishSettings';
|
||||
|
||||
export enum AppSettingType {
|
||||
None,
|
||||
|
||||
@@ -12,7 +12,8 @@ import * as vscode from 'vscode';
|
||||
import { ShellExecutionHelper } from '../../tools/shellExecutionHelper';
|
||||
import { AzureSqlClient } from './azureSqlClient';
|
||||
import { ConnectionService } from '../connections/connectionService';
|
||||
import { DockerImageSpec, IDockerSettings, IPublishToDockerSettings } from 'sqldbproj';
|
||||
import { DockerImageSpec } from 'sqldbproj';
|
||||
import { IDockerSettings, IPublishToDockerSettings } from './publishSettings';
|
||||
|
||||
export class DeployService {
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { ISqlConnectionProperties } from 'sqldbproj';
|
||||
import { DeploymentOptions as mssqlDeploymentOptions } from 'mssql';
|
||||
import { DeploymentOptions as vscodeMssqlDeploymentOptions } from 'vscode-mssql';
|
||||
|
||||
export type DeploymentOptions = mssqlDeploymentOptions | vscodeMssqlDeploymentOptions;
|
||||
|
||||
/**
|
||||
* Settings to use when publishing a SQL Project
|
||||
*/
|
||||
export interface ISqlProjectPublishSettings {
|
||||
databaseName: string;
|
||||
serverName: string;
|
||||
connectionUri: string;
|
||||
sqlCmdVariables?: Record<string, string>;
|
||||
deploymentOptions?: DeploymentOptions;
|
||||
profileUsed?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Settings for creating the docker container a project is being published to
|
||||
*/
|
||||
export interface IDockerSettings extends ISqlConnectionProperties {
|
||||
dockerBaseImage: string,
|
||||
dockerBaseImageEula: string,
|
||||
}
|
||||
|
||||
/**
|
||||
* Settings for publishing a SQL Project to a docker container
|
||||
*/
|
||||
export interface IPublishToDockerSettings {
|
||||
dockerSettings: IDockerSettings;
|
||||
sqlProjectPublishSettings: ISqlProjectPublishSettings;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user