Create save-connection command
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
DB Version | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Medium
|
Adam Connelly |
Bug Description
Create a save-connection command that will be used to save connection information under a user specified name. The command usage will be:
dbversion save-connection [options]
Where the options will be:
* -c --connectionString
* -d --dialect
* -r --driver
* -p --provider
* -n --name
* -t --template
* -e --export
* -i --import
The information will be stored using the settings service, and the create command will be updated to support a saved connection being specified. If the template option is used, the name of an existing connection should be specified to be used as a template, and only the name option will be mandatory.
If no options are specified, the list of saved connections should be output.
Related branches
- dbversion committers: Pending requested
-
Diff: 2759 lines (+2008/-381)21 files modifiedsrc/DatabaseVersion.Console.Tests/Command/Create/CreateCommandTests.cs (+7/-6)
src/DatabaseVersion.Console.Tests/Command/History/HistoryCommandTests.cs (+6/-0)
src/DatabaseVersion.Console.Tests/Command/SavedConnection/SavedConnectionCommandTests.cs (+546/-0)
src/DatabaseVersion.Console.Tests/dbversion.Console.Tests.csproj (+1/-0)
src/DatabaseVersion.Console/Arguments.cs (+0/-59)
src/DatabaseVersion.Console/Command/ConnectionArguments.cs (+46/-0)
src/DatabaseVersion.Console/Command/ConnectionCommandBase.cs (+233/-0)
src/DatabaseVersion.Console/Command/Create/CreateArguments.cs (+17/-0)
src/DatabaseVersion.Console/Command/Create/CreateCommand.cs (+9/-167)
src/DatabaseVersion.Console/Command/History/HistoryArguments.cs (+1/-25)
src/DatabaseVersion.Console/Command/History/HistoryCommand.cs (+8/-114)
src/DatabaseVersion.Console/Command/SavedConnection/SavedConnectionArguments.cs (+52/-0)
src/DatabaseVersion.Console/Command/SavedConnection/SavedConnectionCommand.cs (+326/-0)
src/DatabaseVersion.Console/dbversion.Console.csproj (+13/-8)
src/DatabaseVersion.Tests/Connections/SavedConnectionServiceTests.cs (+313/-0)
src/DatabaseVersion.sln (+1/-1)
src/DatabaseVersion/Connections/ISavedConnectionService.cs (+92/-0)
src/DatabaseVersion/Connections/SavedConnection.cs (+150/-0)
src/DatabaseVersion/Connections/SavedConnectionService.cs (+171/-0)
src/DatabaseVersion/Settings/SettingsService.cs (+13/-1)
src/DatabaseVersion/dbversion.csproj (+3/-0)