1
1
SQL.Template
2
2
------------
3
+
4
+
5
+
6
+
3
7
### Synopsis
4
8
SQL Template Transpiler.
5
9
10
+
11
+
6
12
---
13
+
14
+
7
15
### Description
8
16
9
17
Allows PipeScript to generate SQL.
@@ -25,7 +33,11 @@ Uncommented lines between these two points will be ignored
25
33
-- }
26
34
```
27
35
36
+
37
+
28
38
---
39
+
40
+
29
41
### Examples
30
42
#### EXAMPLE 1
31
43
``` PowerShell
@@ -45,82 +57,82 @@ Uncommented lines between these two points will be ignored
45
57
}
46
58
47
59
Invoke-PipeScript .\HelloWorld.ps1.sql
60
+
61
+
48
62
---
63
+
64
+
49
65
### Parameters
50
66
#### ** CommandInfo**
51
67
52
68
The command information. This will include the path to the file.
53
69
54
70
55
71
56
- > ** Type** : ``` [CommandInfo] ```
57
72
58
- > ** Required** : true
59
73
60
- > ** Position** : named
61
74
62
- > ** PipelineInput** : true (ByValue)
75
+ | Type | Required| Position| PipelineInput |
76
+ | ---------------| --------| --------| --------------|
77
+ | ` [CommandInfo] ` | true | named | true (ByValue)|
63
78
64
79
65
80
66
- ---
67
81
#### ** AsTemplateObject**
68
82
69
83
If set, will return the information required to dynamically apply this template to any text.
70
84
71
85
72
86
73
- > ** Type** : ``` [Switch] ```
74
87
75
- > ** Required** : true
76
88
77
- > ** Position** : named
78
89
79
- > ** PipelineInput** : false
90
+ | Type | Required| Position| PipelineInput|
91
+ | ----------| --------| --------| -------------|
92
+ | ` [Switch] ` | true | named | false |
80
93
81
94
82
95
83
- ---
84
96
#### ** Parameter**
85
97
86
98
A dictionary of parameters.
87
99
88
100
89
101
90
- > ** Type** : ``` [IDictionary] ```
91
102
92
- > ** Required** : false
93
103
94
- > ** Position** : named
95
104
96
- > ** PipelineInput** : false
105
+ | Type | Required| Position| PipelineInput|
106
+ | ---------------| --------| --------| -------------|
107
+ | ` [IDictionary] ` | false | named | false |
97
108
98
109
99
110
100
- ---
101
111
#### ** ArgumentList**
102
112
103
113
A list of arguments.
104
114
105
115
106
116
107
- > ** Type** : ``` [PSObject[]] ```
108
117
109
- > ** Required** : false
110
118
111
- > ** Position** : named
112
119
113
- > ** PipelineInput** : false
120
+ | Type | Required| Position| PipelineInput|
121
+ | --------------| --------| --------| -------------|
122
+ | ` [PSObject[]] ` | false | named | false |
123
+
124
+
114
125
115
126
116
127
117
128
---
129
+
130
+
118
131
### Syntax
119
132
``` PowerShell
120
133
SQL.Template -CommandInfo <CommandInfo> [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
121
134
```
122
135
``` PowerShell
123
136
SQL.Template -AsTemplateObject [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
124
137
```
125
- ---
126
138
0 commit comments