microsoft / microsoft/DacFx

An overload of GenerateDeployScript that accepts Stream

Open
#424 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
460
Forks
29
Avg merge
4d 9h
Merged PRs (30d)
7

Description

Hi,
In DacServices class there are 3 definitions of GenerateDeployScript method:

```csharp
public string GenerateDeployScript(DacPackage package, string targetDatabaseName, DacDeployOptions options = null, CancellationToken? cancellationToken = null)

public static string GenerateDeployScript(DacPackage sourcePackage, DacPackage targetPackage, string targetDatabaseName, DacDeployOptions options = null)

public static void GenerateDeployScript(Stream outputStream, DacPackage sourcePackage, DacPackage targetPackage, string targetDatabaseName, DacDeployOptions options = null)
```

I would like to request for adding an overload to the first definition that accepts Stream like what is available for the static method.

Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the DacServices class by comparing the instance GenerateDeployScript overload with the existing static overload that accepts an output Stream. Trace how the instance method produces its script and add the requested Stream-based entry point; done means the overload is available with the same relevant parameters and preserves the existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
backend-api-design, databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.