Skip to content

Commit 318a74b

Browse files
author
Travis Fields
committed
(docs) Add database param descriptions for sqlserver_tsql
- Add desc block to type - Add parameter to README
1 parent f23f32b commit 318a74b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ Requires the `sqlserver::config` define for access to the parent instance.
252252

253253
* `command`: *Optional.* Supplies a TSQL statement to execute. Valid options: a string.
254254

255-
* `instance`: *Required.* Specifies the SQL Server instance on which to execute the statement. Valid options: a string containing the name of an existing instance. Default: 'MSSQLSERVER'.
255+
* `instance`: *Required.* Specifies the SQL Server instance on which to execute the statement. Valid options: a string containing the name of an existing instance. Default: 'MSSQLSERVER'.
256+
257+
* `database`: *Optional* Specifies the default database to connect to. Default: 'master'
256258

257259
* `onlyif`: *Optional.* Supplies a TSQL statement to execute before running the `command` statement, determining whether to move forward. If the `onlyif` statement ends with a THROW or any non-standard exit, Puppet executes the `command` statement. Valid options: a string.
258260

lib/puppet/type/sqlserver_tsql.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def self.checks
2929
end
3030

3131
newparam(:database) do
32+
desc 'initial database to connect to during query execution'
3233
defaultto 'master'
3334
validate do |value|
3435
fail("Invalid database name #{value}") unless /^[[:word:]|#|@]+/.match(value)

0 commit comments

Comments
 (0)