Comments (9)
Following on what @dzsquared proposed, maybe we can just use the word input-type
instead of file-type
so that it can be a bit more open to what it accepts as values, and then we can use sql-command
as an option to indicate that the SQL query is provided right in the yaml file, in a new dedicated property, for example: command
.
input-type:
description: 'The input type. Options: sql-file, project-file, dacpac, sql-command'
required: true
sql-command:
description: 'In case input type is sql-command, the sql command that will be executed'
required: false
from sql-action.
As work as been underway on v2, the proposed interface is revised to simplify and allow the potential for extension to additional sqlpackage commands.
- The
action
parameter has become required and thefile-type
parameter is removed from the proposal. - The
arguments
option is specified assqlpackage-arguments
(this is being updated in the post above as well)
from sql-action.
This issue is idle because it has been open for 14 days with no activity.
from sql-action.
I’ve been involved in some discussions where its come up that it would be really helpful to run some queries/TSQL commands that are generated during the pipeline without going through the step of writing it to file. This is part of what we’ve taken away from being able to pass sqlcmd variables in, although even that wasn’t especially intuitive.
Could the addition of a file-type
value along the lines of sql-query
(or interactive-query
, sql-command
, run-command
) be helpful for your use cases?
from sql-action.
This issue is idle because it has been open for 14 days with no activity.
from sql-action.
This issue is idle because it has been open for 14 days with no activity.
from sql-action.
As work as been underway on v2, the proposed interface is revised to simplify and allow the potential for extension to additional sqlpackage commands.
- The
action
parameter has become required and thefile-type
parameter is removed from the proposal.- The
arguments
option is specified assqlpackage-arguments
(this is being updated in the post above as well)
After further discussion and user feedback, we have replaced the script action with go-sqlcmd in #113. We are keeping the arguments
input from v1 to be for additional sqlpackage arguments when Publishing to database, and be for additional sqlcmd arguments when Script action is used. This has been updated in the description above.
There are some breaking changes from the go-sqlcmd arguments that may require changes to your yaml files still: https://docs.microsoft.com/en-us/sql/tools/go-sqlcmd-utility?view=sql-server-ver16#breaking-changes-from-sqlcmd
from sql-action.
Work for v2 is nearing completion and is available for testing through https://github.com/azure/sql-action/tree/v2
Prior to release at https://github.com/Azure/sql-action/releases the v2 work can be used for evaluation and we appreciate you reporting any issues you find.
There are a few items to finish up in the v2 milestone and we anticipate the release will be ready in September.
from sql-action.
This issue is idle because it has been open for 14 days with no activity.
from sql-action.
Related Issues (20)
- Firewall Failure HOT 2
- v2 - Connection string escaping for Authentication option HOT 1
- Action does not work when connection string server name contains "tcp:" HOT 3
- arguments not passing variable to sqlcmd HOT 1
- Expand-Archive : is not a supported archive file format. .zip is the only supported archive file format. HOT 6
- Scripting Variables not being passed to sqlcmd HOT 4
- SQL Managed Instance HOT 8
- Move version numbers to config file so main.js doesn't need to be updated every time HOT 1
- sql-action V2 does not appear to be working with on-premises SQL Server HOT 14
- SQLAction DriftReport fails to execute HOT 2
- pipeline credentials expired
- Getting Failed to add firewall rule error during SQL DB deployment using GitHub Hosted Runner HOT 11
- Not all PR checks are run on forks HOT 1
- Unable to pass variable from sql-action to dacpac HOT 3
- SSDT error while deploying it from GitHub self hosted runner HOT 6
- Getting error Failed to add firewall rule error during sql script execution using GitHub Hosted Runner HOT 5
- I want to comapre only a particular schema in source and destination using dacapac not all schemas HOT 1
- No usable version of libssl was found HOT 2
- The handle is invalid HOT 3
- Feature request: Decouple using managed identity from updating sql network settings HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sql-action.