mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25:36 -05:00
Add launchPublishToDockerContainerQuickpick to extension API (#19834)
* Initial * remove namespace * minor fixes
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
|
||||
declare module 'sqldbproj' {
|
||||
import * as vscode from 'vscode';
|
||||
import { DeploymentOptions as mssqlDeploymentOptions } from 'mssql';
|
||||
import { DeploymentOptions as vscodeMssqlDeploymentOptions } from 'vscode-mssql';
|
||||
|
||||
export const enum extension {
|
||||
name = 'Microsoft.sql-database-projects',
|
||||
vsCodeName = 'ms-mssql.sql-database-projects-vscode'
|
||||
@@ -63,6 +66,8 @@ declare module 'sqldbproj' {
|
||||
*/
|
||||
addItemPrompt(project: ISqlProject, relativeFilePath: string, options?: AddItemOptions): Promise<void>;
|
||||
|
||||
getPublishToDockerSettings(project: ISqlProject): Promise<IPublishToDockerSettings | undefined>;
|
||||
|
||||
}
|
||||
|
||||
export interface AddItemOptions {
|
||||
@@ -240,14 +245,37 @@ declare module 'sqldbproj' {
|
||||
* "None" scripts in this project (scripts ignored by the build)
|
||||
*/
|
||||
readonly noneDeployScripts: IFileProjectEntry[];
|
||||
|
||||
readonly databaseReferences: IDatabaseReferenceProjectEntry[];
|
||||
}
|
||||
|
||||
export const enum EntryType {
|
||||
File,
|
||||
Folder,
|
||||
DatabaseReference,
|
||||
SqlCmdVariable
|
||||
}
|
||||
|
||||
export interface IProjectEntry {
|
||||
type: EntryType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents an entry in a project file
|
||||
*/
|
||||
export interface IFileProjectEntry {
|
||||
export interface IFileProjectEntry extends IProjectEntry {
|
||||
fsUri: vscode.Uri;
|
||||
relativePath: string;
|
||||
pathForSqlProj(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a database reference entry in a project file
|
||||
*/
|
||||
export interface IDatabaseReferenceProjectEntry extends IFileProjectEntry {
|
||||
databaseName: string;
|
||||
databaseVariableLiteralValue?: string;
|
||||
suppressMissingDependenciesErrors: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -263,4 +291,37 @@ declare module 'sqldbproj' {
|
||||
sqlDW = 'Azure Synapse Dedicated SQL Pool',
|
||||
sqlEdge = 'Azure SQL Edge'
|
||||
}
|
||||
|
||||
export interface ISqlConnectionProperties {
|
||||
tenantId?: string,
|
||||
accountId?: string
|
||||
serverName: string,
|
||||
userName: string,
|
||||
password: string,
|
||||
port: number,
|
||||
dbName: string,
|
||||
profileName?: string,
|
||||
connectionRetryTimeout?: number
|
||||
}
|
||||
|
||||
export interface ILocalDbSetting extends ISqlConnectionProperties {
|
||||
dockerBaseImage: string,
|
||||
dockerBaseImageEula: string,
|
||||
}
|
||||
|
||||
export interface IPublishToDockerSettings {
|
||||
localDbSetting?: ILocalDbSetting;
|
||||
deploySettings?: IDeploySettings;
|
||||
}
|
||||
|
||||
export type DeploymentOptions = mssqlDeploymentOptions | vscodeMssqlDeploymentOptions;
|
||||
|
||||
export interface IDeploySettings {
|
||||
databaseName: string;
|
||||
serverName: string;
|
||||
connectionUri: string;
|
||||
sqlCmdVariables?: Record<string, string>;
|
||||
deploymentOptions?: DeploymentOptions;
|
||||
profileUsed?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user