Skip to content

Commit 1143690

Browse files
author
Owen Duncan
committed
A through C syntax and codeblock updates
1 parent 08a6281 commit 1143690

File tree

202 files changed

+836
-669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+836
-669
lines changed

Diff for: query-languages/m/access-database.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ manager: kfile
1010
---
1111
# Access.Database
1212

13-
14-
```
13+
## Syntax
14+
15+
<pre>
1516
Access.Database(database as binary, optional options as nullable record) as table
16-
```
17+
</pre>
1718

1819
## About
19-
Returns a structural representation of an Access database, <code>database</code>. An optional record parameter, <code>options</code>, may be specified to control the following options: <ul> <li> <code>CreateNavigationProperties</code> : A logical (true/false) that sets whether to generate navigation properties on the returned values (default is false).</li> <li> <code>NavigationPropertyNameGenerator</code> : A function that is used for the creation of names for navigation properties.</li> </ul> The record parameter is specified as [option1 = value1, option2 = value2...] for example.
20+
Returns a structural representation of an Access database, `database`. An optional record parameter, `options`, may be specified to control the following options: <ul> <li> `CreateNavigationProperties` : A logical (true/false) that sets whether to generate navigation properties on the returned values (default is false).</li> <li> `NavigationPropertyNameGenerator` : A function that is used for the creation of names for navigation properties.</li> </ul> The record parameter is specified as [option1 = value1, option2 = value2...] for example.
2021

2122
## Example
2223

23-
```
24+
```powerquery-m
2425
Access.Database(File.Contents("c:\users\myuser\Desktop\mydb.accdb"))
2526
```
2627

Diff for: query-languages/m/accessing-data-functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ Functions in this section access data and return table values. Most of these fun
6060
|[HdInsight.Containers](hdinsight-containers.md)|Returns a navigational table containing all containers found in the HDInsight account. Each row has the container name and table containing its files.|
6161
|[HdInsight.Contents](hdinsight-contents.md)|Returns a navigational table containing all containers found in the HDInsight account. Each row has the container name and table containing its files.|
6262
|[HdInsight.Files](hdinsight-files.md)|Returns a table containing a row for each folder and file found at the container URL, and subfolders from an HDInsight account. Each row contains properties of the file/folder and a link to its content.|
63-
|[Informix.Database](informix-database.md)|Returns a table of SQL tables and views available in an Informix database on server <code>server</code> in the database instance named <code>database</code>.|
63+
|[Informix.Database](informix-database.md)|Returns a table of SQL tables and views available in an Informix database on server `server` in the database instance named `database`.|
6464
|[Json.Document](json-document.md)|Returns the contents of a JSON document. The contents may be directly passed to the function as text, or it may be the binary value returned by a function like File.Contents.|
6565
|[Json.FromValue](json-fromvalue.md)|Produces a JSON representation of a given value value with a text encoding specified by encoding.|
6666
|[MySQL.Database](mysql-database.md)|Returns a table with data relating to the tables in the specified MySQL Database.|
6767
|[OData.Feed](odata-feed.md)|Returns a table of OData feeds offered by an OData serviceUri.|
68-
|[Odbc.DataSource](odbc-datasource.md)|Returns a table of SQL tables and views from the ODBC data source specified by the connection string <code>connectionString</code>. |
68+
|[Odbc.DataSource](odbc-datasource.md)|Returns a table of SQL tables and views from the ODBC data source specified by the connection string `connectionString`. |
6969
|[Odbc.InferOptions](odbc-inferoptions.md)|Returns the result of trying to infer SQL capabilities for an ODBC driver. |
7070
|[Odbc.Query](odbc-query.md)|Connects to a generic provider with the given connection string and returns the result of evaluating the query.|
7171
|[OleDb.DataSource](oledb-datasource.md)|Returns a table of SQL tables and views from the OLE DB data source specified by the connection string.|

Diff for: query-languages/m/activedirectory-domains.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ manager: kfile
1414
## About
1515
Returns a table with Domain information available in the current domain or optional Active Directory forest.
1616

17-
```
17+
## Syntax
18+
19+
<pre>
1820
ActiveDirectory.Domains(optional forestRootDomainName as nullable text) as table
19-
```
21+
</pre>
2022

2123
## Arguments
2224

Diff for: query-languages/m/adobeanalytics-cubes.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# AdobeAnalytics.Cubes
12-
<code>AdobeAnalytics.Cubes(optional <b>options</b> as nullable record) as table</code>
12+
13+
14+
## Syntax
15+
16+
<pre>
17+
AdobeAnalytics.Cubes(optional <b>options</b> as nullable record) as table
18+
</pre>
1319

1420
## About
15-
Returns a table of multidimensional packages from Adobe Analyics. An optional record parameter, <code>options</code>, may be specified to control the following options: <ul> <li><code>HierarchicalNavigation</code> : A logical (true/false) that sets whether to view the tables grouped by their schema names (default is false).</li> <li><code>MaxRetryCount</code> : The number of retries to perform when polling for the result of the query. The default value is 120.</li> <li><code>RetryInterval</code> : The duration of time between retry attempts. The default value is 1 second.</li> </ul>
21+
Returns a table of multidimensional packages from Adobe Analyics. An optional record parameter, `options`, may be specified to control the following options: <ul> <li>`HierarchicalNavigation` : A logical (true/false) that sets whether to view the tables grouped by their schema names (default is false).</li> <li>`MaxRetryCount` : The number of retries to perform when polling for the result of the query. The default value is 120.</li> <li>`RetryInterval` : The duration of time between retry attempts. The default value is 1 second.</li> </ul>

Diff for: query-languages/m/adodotnet-datasource.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# AdoDotNet.DataSource
12-
<code>AdoDotNet.DataSource(<b>providerName</b> as text, <b>connectionString</b> as any, optional <b>options</b> as nullable record) as table</code>
12+
13+
## Syntax
14+
15+
<pre>
16+
AdoDotNet.DataSource(<b>providerName</b> as text, <b>connectionString</b> as any, optional <b>options</b> as nullable record) as table
17+
</pre>
1318

1419
#### About
15-
Returns the schema collection for the ADO.NET data source with provider name <code>providerName</code> and connection string <code>connectionString</code>. <code>connectionString</code> can be text or a record of property value pairs. Property values can either be text or number. An optional record parameter, <code>options</code>, may be provided to specify additional properties. The record can contain the following fields:
16-
* <code>CommandTimeout</code> : A duration which controls how long the server-side query is allowed to run before it is canceled. The default value is ten minutes.
17-
* <code>SqlCompatibleWindowsAuth</code> : A logical (true/false) that determines whether to produce SQL Server-compatible connection string options for Windows authentication. The default value is true.
20+
Returns the schema collection for the ADO.NET data source with provider name `providerName` and connection string `connectionString`. `connectionString` can be text or a record of property value pairs. Property values can either be text or number. An optional record parameter, `options`, may be provided to specify additional properties. The record can contain the following fields:
21+
* `CommandTimeout` : A duration which controls how long the server-side query is allowed to run before it is canceled. The default value is ten minutes.
22+
* `SqlCompatibleWindowsAuth` : A logical (true/false) that determines whether to produce SQL Server-compatible connection string options for Windows authentication. The default value is true.
1823

Diff for: query-languages/m/adodotnet-query.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# AdoDotNet.Query
12-
<code>AdoDotNet.Query(<b>providerName</b> as text, <b>connectionString</b> as any, <b>query</b> as text, optional <b>options</b> as nullable record) as table</code>
12+
13+
## Syntax
14+
15+
<pre>
16+
AdoDotNet.Query(<b>providerName</b> as text, <b>connectionString</b> as any, <b>query</b> as text, optional <b>options</b> as nullable record) as table
17+
</pre>
1318

1419
## About
15-
Returns the result of running <code>query</code> with the connection string <code>connectionString</code> using the ADO.NET provider <code>providerName</code>. <code>connectionString</code> can be text or a record of property value pairs. Property values can either be text or number. An optional record parameter, <code>options</code>, may be provided to specify additional properties. The record can contain the following fields:
20+
Returns the result of running `query` with the connection string `connectionString` using the ADO.NET provider `providerName`. `connectionString` can be text or a record of property value pairs. Property values can either be text or number. An optional record parameter, `options`, may be provided to specify additional properties. The record can contain the following fields:
1621

17-
* <code>CommandTimeout</code> : A duration which controls how long the server-side query is allowed to run before it is canceled. The default value is ten minutes.
18-
* <code>SqlCompatibleWindowsAuth</code> : A logical (true/false) that determines whether to produce SQL Server-compatible connection string options for Windows authentication. The default value is true.
22+
* `CommandTimeout` : A duration which controls how long the server-side query is allowed to run before it is canceled. The default value is ten minutes.
23+
* `SqlCompatibleWindowsAuth` : A logical (true/false) that determines whether to produce SQL Server-compatible connection string options for Windows authentication. The default value is true.
1924

Diff for: query-languages/m/analysisservices-database.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,23 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# AnalysisServices.Database
12-
<code>AnalysisServices.Database(**server** as text, **database** as text, optional **options **as nullable record) as table</code>
12+
13+
## Syntax
14+
15+
<pre>
16+
AnalysisServices.Database(**server** as text, **database** as text, optional **options **as nullable record) as table
17+
</pre>
1318

1419
## About
15-
Returns a table of multidimensional cubes or tabular models from the Analysis Services database <code>database</code> on server <code>server</code>. An optional record parameter, <code>options</code>, may be specified to control the following options:
20+
Returns a table of multidimensional cubes or tabular models from the Analysis Services database `database` on server `server`. An optional record parameter, `options`, may be specified to control the following options:
1621

1722

1823

19-
* <code>Query</code> : A native MDX query used to retrieve data.
20-
* <code>TypedMeasureColumns</code> : A logical value indicating if the types specified in the multidimensional or tabular model will be used for the types of the added measure columns. When set to false, the type &quot;number&quot; will be used for all measure columns. The default value for this option is false.
21-
* <code>Culture</code> : A culture name specifying the culture for the data. This corresponds to the &#39;Locale Identifier&#39; connection string property.
22-
* <code>CommandTimeout</code> : A duration which controls how long the server-side query is allowed to run before it is canceled. The default value is driver-dependent.
23-
* <code>ConnectionTimeout</code> : A duration which controls how long to wait before abandoning an attempt to make a connection to the server. The default value is driver-dependent.
24-
* <code>SubQueries</code> : A number (0, 1 or 2) that sets the value of the &quot;SubQueries&quot; property in the connection string. This controls the behavior of calculated members on subselects or subcubes. (The default value is 2).
25-
* <code>Implementation</code>
24+
* `Query` : A native MDX query used to retrieve data.
25+
* `TypedMeasureColumns` : A logical value indicating if the types specified in the multidimensional or tabular model will be used for the types of the added measure columns. When set to false, the type &quot;number&quot; will be used for all measure columns. The default value for this option is false.
26+
* `Culture` : A culture name specifying the culture for the data. This corresponds to the &#39;Locale Identifier&#39; connection string property.
27+
* `CommandTimeout` : A duration which controls how long the server-side query is allowed to run before it is canceled. The default value is driver-dependent.
28+
* `ConnectionTimeout` : A duration which controls how long to wait before abandoning an attempt to make a connection to the server. The default value is driver-dependent.
29+
* `SubQueries` : A number (0, 1 or 2) that sets the value of the &quot;SubQueries&quot; property in the connection string. This controls the behavior of calculated members on subselects or subcubes. (The default value is 2).
30+
* `Implementation`
2631

Diff for: query-languages/m/analysisservices-databases.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# AnalysisServices.Databases
12-
<code>AnalysisServices.Databases(**server** as text, optional **options** as nullable record) as table</code>
12+
13+
## Syntax
14+
15+
<pre>
16+
AnalysisServices.Databases(**server** as text, optional **options** as nullable record) as table
17+
</pre>
1318

1419
## About
15-
Returns databases on an Analysis Services instance, <code>server</code>. An optional record parameter, <code>options</code>, may be provided to specify additional properties. The record can contain the following fields:
16-
* <code>TypedMeasureColumns</code> : A logical value indicating if the types specified in the multidimensional or tabular model will be used for the types of the added measure columns. When set to false, the type &quot;number&quot; will be used for all measure columns. The default value for this option is false.
17-
* <code>Culture</code> : A culture name specifying the culture for the data. This corresponds to the &#39;Locale Identifier&#39; connection string property.
18-
* <code>CommandTimeout</code> : A duration which controls how long the server-side query is allowed to run before it is canceled. The default value is driver-dependent.
19-
* <code>ConnectionTimeout</code> : A duration which controls how long to wait before abandoning an attempt to make a connection to the server. The default value is driver-dependent.
20-
* <code>SubQueries</code> : A number (0, 1 or 2) that sets the value of the &quot;SubQueries&quot; property in the connection string. This controls the behavior of calculated members on subselects or subcubes. (The default value is 2).
21-
* <code>Implementation</code>
20+
Returns databases on an Analysis Services instance, `server`. An optional record parameter, `options`, may be provided to specify additional properties. The record can contain the following fields:
21+
* `TypedMeasureColumns` : A logical value indicating if the types specified in the multidimensional or tabular model will be used for the types of the added measure columns. When set to false, the type &quot;number&quot; will be used for all measure columns. The default value for this option is false.
22+
* `Culture` : A culture name specifying the culture for the data. This corresponds to the &#39;Locale Identifier&#39; connection string property.
23+
* `CommandTimeout` : A duration which controls how long the server-side query is allowed to run before it is canceled. The default value is driver-dependent.
24+
* `ConnectionTimeout` : A duration which controls how long to wait before abandoning an attempt to make a connection to the server. The default value is driver-dependent.
25+
* `SubQueries` : A number (0, 1 or 2) that sets the value of the &quot;SubQueries&quot; property in the connection string. This controls the behavior of calculated members on subselects or subcubes. (The default value is 2).
26+
* `Implementation`

Diff for: query-languages/m/azurestorage-blobcontents.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# AzureStorage.BlobContents
12-
<code>AzureStorage.BlobContents(<b>url</b> as text, optional <b>options</b> as nullable record) as binary</code>
12+
13+
## Syntax
14+
15+
<pre>
16+
AzureStorage.BlobContents(<b>url</b> as text, optional <b>options</b> as nullable record) as binary
17+
</pre>
1318

1419
## About
1520
Returns the content of the blob at the URL, `url`, from an Azure storage vault.

Diff for: query-languages/m/azurestorage-blobs.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# AzureStorage.Blobs
12-
<code>AzureStorage.Blobs(<b>account</b> as text, optional <b>options</b> as nullable record) as table</code>
12+
13+
## Syntax
14+
15+
<pre>
16+
AzureStorage.Blobs(<b>account</b> as text, optional <b>options</b> as nullable record) as table
17+
</pre>
1318

1419
## About
1520

16-
Returns a navigational table containing a row for each container found at the account URL, <code>account</code>, from an Azure storage vault. Each row contains a link to the container blobs.
21+
Returns a navigational table containing a row for each container found at the account URL, `account`, from an Azure storage vault. Each row contains a link to the container blobs.
1722

Diff for: query-languages/m/azurestorage-datalakecontents.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# AzureStorage.DataLakeContents
12-
<code>AzureStorage.DataLakeContents(<b>url</b> as text, optional <b>options</b> as nullable record) as binary</code>
12+
13+
## Syntax
14+
15+
<pre>
16+
AzureStorage.DataLakeContents(<b>url</b> as text, optional <b>options</b> as nullable record) as binary
17+
</pre>
1318

1419
## About
15-
Returns the content of the file at the URL, <code>url</code>, from an Azure Data Lake Storage filesystem.
20+
Returns the content of the file at the URL, `url`, from an Azure Data Lake Storage filesystem.
1621

1722

1823

Diff for: query-languages/m/azurestorage-tables.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ manager: kfile
1414
## About
1515
Returns a navigational table containing a row for each table found at the account URL from an Azure storage vault. Each row contains a link to the azure table.
1616

17-
```
17+
## Syntax
18+
19+
<pre>
1820
AzureStorage.Tables(accountName as text) as table
19-
```
21+
</pre>
2022

2123
## Arguments
2224

Diff for: query-languages/m/binary-buffer.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ manager: kfile
1414
## About
1515
Buffers the binary value in memory. The result of this call is a stable binary value, which means it will have a deterministic length and order of bytes.
1616

17-
```
17+
## Syntax
18+
19+
<pre>
1820
Binary.Buffer(binary as nullable binary) as nullable binary
19-
```
21+
</pre>
2022

2123
## Arguments
2224

Diff for: query-languages/m/binary-combine.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ manager: kfile
1414
## About
1515
Combines a list of binaries into a single binary.
1616

17-
```
17+
## Syntax
18+
19+
<pre>
1820
Binary.Combine(binaries as list) as binary
19-
```
21+
</pre>
2022

2123
## Arguments
2224

Diff for: query-languages/m/binary-compress.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# Binary.Compress
12+
13+
## Syntax
14+
15+
<pre>
1216
Binary.Compress(binary as nullable binary, compressionType as number) as nullable binary
13-
17+
</pre>
18+
1419
## About
1520
Compresses a binary value using the given compression type. The result of this call is a compressed copy of the input. Compression types include:
1621

@@ -22,10 +27,10 @@ Compresses a binary value using the given compression type. The result of this c
2227
### Example 1
2328
Compress the binary value.
2429

25-
```
30+
```powerquery-m
2631
Binary.Compress(Binary.FromList(List.Repeat({10}, 1000)), Compression.Deflate)
2732
```
2833

29-
```
34+
```powerquery-m
3035
Equals: #binary({227, 226, 26, 5, 163, 96, 20, 12, 119, 0, 0})
3136
```

Diff for: query-languages/m/binary-decompress.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,29 @@ ms.author: owend
99
manager: kfile
1010
---
1111
# Binary.Decompress
12-
<code>Binary.Decompress(<b>binary</b> as nullable binary, <b>compressionType</b> as number) as nullable binary</code>
12+
13+
## Syntax
14+
15+
<pre>
16+
Binary.Decompress(<b>binary</b> as nullable binary, <b>compressionType</b> as number) as nullable binary
17+
</pre>
1318

1419
## About
1520
Decompresses a binary value using the given compression type. The result of this call is a decompressed copy of the input. Compression types include:
1621

17-
* <code>Compression.GZip</code>
22+
* `Compression.GZip`
1823

19-
* <code>Compression.Deflate</code>
24+
* `Compression.Deflate`
2025

2126
## Example 1
2227
Decompress the binary value.
2328

24-
<code>Binary.Decompress(#binary({115, 103, 200, 7, 194, 20, 134, 36, 134, 74, 134, 84, 6, 0}), Compression.Deflate)</code>
29+
```powerquery-m
30+
Binary.Decompress(#binary({115, 103, 200, 7, 194, 20, 134, 36, 134, 74, 134, 84, 6, 0}), Compression.Deflate)
31+
```
2532

26-
<code>#binary({71, 0, 111, 0, 111, 0, 100, 0, 98, 0, 121, 0, 101, 0})</code>
33+
```powerquery-m
34+
#binary({71, 0, 111, 0, 111, 0, 100, 0, 98, 0, 121, 0, 101, 0})
35+
```
2736

2837

0 commit comments

Comments
 (0)