diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..f9ba8cf --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,9 @@ +# Microsoft Open Source Code of Conduct + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). + +Resources: + +- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) +- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns diff --git a/CustomConnectorGallery.md b/CustomConnectorGallery.md deleted file mode 100644 index 5426df8..0000000 --- a/CustomConnectorGallery.md +++ /dev/null @@ -1,21 +0,0 @@ -# Welcome - -If you've reached this landing page, it's probably via a new button you clicked in Power BI! We're still getting some final tweaks working on our end to deliver third party connectors to you, but we hope they'll be available soon. Look forward to experience improvements in short order! - -# Getting Started with Data Connectors -Data Connectors for Power BI enables users to connect to and access data from your application, service, or data source, providing them with rich business intelligence and robust analytics over multiple data sources. By integrating seamlessly into the Power Query connectivity experience in Power BI Desktop, Data Connectors make it easy for power users to query, shape and mashup data from your app to build reports and dashboards that meet the needs of their organization. - -![PBIGetData](blobs/helloworld1.png "Hello World in Get Data") - -Data Connectors are created using the [M language](https://msdn.microsoft.com/library/mt211003.aspx). This is the same language used by the Power Query user experience found in Power BI Desktop and Excel 2016. Extensions allow you to define new functions for the M language, and can be used to enable connectivity to new data sources. While this document will focus on defining new connectors, much of the same process applies to defining general purpose M functions. Extensions can vary in complexity, from simple wrappers that essentially just provide "branding" over existing data source functions, to rich connectors that support Direct Query. - -Please see the [Data Connector technical reference](docs/m-extensions.md) for more details. - -## Quickstart - -> **Note:** The steps to enable extensions changed in the June 2017 version of Power BI Desktop. - -1. Enable the **Custom data connectors** preview feature in Power BI Desktop (under *File | Options and settings | Custom data connectors*) -2. Restart Power BI Desktop - -![Preview Feature](blobs/previewFeature.png) diff --git a/LICENSE b/LICENSE index de9d570..9e841e7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,23 +1,21 @@ -MIT License + MIT License -Copyright (c) 2017 Microsoft Corporation + Copyright (c) Microsoft Corporation. -All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/docs/README.md b/docs/README.md index 4332df2..c2a4fc4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1 +1 @@ -Docs have been moved to the [Power Query documentation repo](https://docs.microsoft.com/power-query/startingtodevelopcustomconnectors). +Docs have been moved to the [Power Query documentation repo](https://learn.microsoft.com/power-query/install-sdk). diff --git a/samples/DataWorldSwagger/.vscode/settings.json b/samples/DataWorldSwagger/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/DataWorldSwagger/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/DataWorldSwagger/DataWorldSwagger.mproj b/samples/DataWorldSwagger/DataWorldSwagger.mproj deleted file mode 100644 index 577277c..0000000 --- a/samples/DataWorldSwagger/DataWorldSwagger.mproj +++ /dev/null @@ -1,100 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - DataWorldSwagger - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Content - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/DataWorldSwagger/DataWorldSwagger.proj b/samples/DataWorldSwagger/DataWorldSwagger.proj new file mode 100644 index 0000000..4e84444 --- /dev/null +++ b/samples/DataWorldSwagger/DataWorldSwagger.proj @@ -0,0 +1,25 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + + diff --git a/samples/DirectQueryForSQL/.vscode/settings.json b/samples/DirectQueryForSQL/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/DirectQueryForSQL/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/DirectQueryForSQL/DirectQueryForSQL.mez b/samples/DirectQueryForSQL/DirectQueryForSQL.mez deleted file mode 100644 index 542b260..0000000 Binary files a/samples/DirectQueryForSQL/DirectQueryForSQL.mez and /dev/null differ diff --git a/samples/DirectQueryForSQL/DirectQueryForSQL.mproj b/samples/DirectQueryForSQL/DirectQueryForSQL.mproj deleted file mode 100644 index 390dabd..0000000 --- a/samples/DirectQueryForSQL/DirectQueryForSQL.mproj +++ /dev/null @@ -1,117 +0,0 @@ - - - Debug - 2.0 - {c7c4a39e-fd85-45a6-a43e-5b244ee349bf} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - DirectQueryForSQL - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/DirectQueryForSQL/DirectQueryForSQL.proj b/samples/DirectQueryForSQL/DirectQueryForSQL.proj new file mode 100644 index 0000000..e733bf3 --- /dev/null +++ b/samples/DirectQueryForSQL/DirectQueryForSQL.proj @@ -0,0 +1,30 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/DirectQueryForSQL/DirectQueryForSQL80.png b/samples/DirectQueryForSQL/DirectQueryForSQL80.png deleted file mode 100644 index 673dce5..0000000 Binary files a/samples/DirectQueryForSQL/DirectQueryForSQL80.png and /dev/null differ diff --git a/samples/DirectQueryForSQL/README.md b/samples/DirectQueryForSQL/README.md index d7f4543..def4a47 100644 --- a/samples/DirectQueryForSQL/README.md +++ b/samples/DirectQueryForSQL/README.md @@ -1,4 +1,5 @@ # Direct Query using SQL Server ODBC + This sample creates an ODBC based custom connector that enables Direct Query for SQL Server. The code does the following: @@ -9,4 +10,4 @@ The code does the following: * Overrides default ODBC capabilities returned by the driver * Wraps M's built-in ODBC function - `Odbc.DataSource` -Please see the comments in the code for more details. \ No newline at end of file +Please see the comments in the code for more details. diff --git a/samples/Github/.vscode/settings.json b/samples/Github/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/Github/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/Github/Github.mez b/samples/Github/Github.mez deleted file mode 100644 index 4c33074..0000000 Binary files a/samples/Github/Github.mez and /dev/null differ diff --git a/samples/Github/README.md b/samples/Github/README.md index 71db1b1..2e1dbf6 100644 --- a/samples/Github/README.md +++ b/samples/Github/README.md @@ -1,2 +1,3 @@ # Tutorial found at PQ Docs -Please see the [Github Tutorial](https://docs.microsoft.com/en-us/power-query/samples/github/readme) in the PQ Docs. + +Please see the [Github Tutorial](https://learn.microsoft.com/power-query/samples/github/readme) in the PQ Docs. diff --git a/samples/Github/github.mproj b/samples/Github/github.mproj deleted file mode 100644 index e2d7f3b..0000000 --- a/samples/Github/github.mproj +++ /dev/null @@ -1,128 +0,0 @@ - - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - github - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Content - - - Content - - - Code - - - Content - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/Github/github.proj b/samples/Github/github.proj new file mode 100644 index 0000000..001e5f0 --- /dev/null +++ b/samples/Github/github.proj @@ -0,0 +1,32 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/Github/github.query.pq b/samples/Github/github.query.pq index d71f6bf..0687acd 100644 --- a/samples/Github/github.query.pq +++ b/samples/Github/github.query.pq @@ -1,2 +1,5 @@ // This is where you can write sample queries to test your extension. -let source = GithubSample.Contents("https://api.github.com/") in source +let + source = GithubSample.Contents("https://api.github.com/") +in + source diff --git a/samples/Github/github80.png b/samples/Github/github80.png deleted file mode 100644 index 673dce5..0000000 Binary files a/samples/Github/github80.png and /dev/null differ diff --git a/samples/HelloWorld/.vscode/settings.json b/samples/HelloWorld/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/HelloWorld/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/HelloWorld/HelloWorld.mez b/samples/HelloWorld/HelloWorld.mez deleted file mode 100644 index be971c0..0000000 Binary files a/samples/HelloWorld/HelloWorld.mez and /dev/null differ diff --git a/samples/HelloWorld/HelloWorld.mproj b/samples/HelloWorld/HelloWorld.mproj deleted file mode 100644 index e0918dd..0000000 --- a/samples/HelloWorld/HelloWorld.mproj +++ /dev/null @@ -1,123 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - HelloWorld - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Content - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/HelloWorld/HelloWorld.pq b/samples/HelloWorld/HelloWorld.pq index 3c82287..6fd440c 100644 --- a/samples/HelloWorld/HelloWorld.pq +++ b/samples/HelloWorld/HelloWorld.pq @@ -11,8 +11,7 @@ HelloWorld = [ TestConnection = (dataSourcePath) => {"HelloWorld.Contents"}, Authentication = [ Anonymous = [] - ], - Label = Extension.LoadString("DataSourceLabel") + ] ]; HelloWorld.Publish = [ diff --git a/samples/HelloWorld/HelloWorld.proj b/samples/HelloWorld/HelloWorld.proj new file mode 100644 index 0000000..15aa38f --- /dev/null +++ b/samples/HelloWorld/HelloWorld.proj @@ -0,0 +1,30 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/HelloWorld/HelloWorld80.png b/samples/HelloWorld/HelloWorld80.png deleted file mode 100644 index 673dce5..0000000 Binary files a/samples/HelloWorld/HelloWorld80.png and /dev/null differ diff --git a/samples/HelloWorld/resources.resx b/samples/HelloWorld/resources.resx index 1a140f4..988dfe6 100644 --- a/samples/HelloWorld/resources.resx +++ b/samples/HelloWorld/resources.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - HelloWorld - HelloWorld.Contents Help diff --git a/samples/HelloWorldWithDocs/.vscode/settings.json b/samples/HelloWorldWithDocs/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/HelloWorldWithDocs/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/HelloWorldWithDocs/HelloWorldWithDocs.mez b/samples/HelloWorldWithDocs/HelloWorldWithDocs.mez deleted file mode 100644 index a81e1ff..0000000 Binary files a/samples/HelloWorldWithDocs/HelloWorldWithDocs.mez and /dev/null differ diff --git a/samples/HelloWorldWithDocs/HelloWorldWithDocs.mproj b/samples/HelloWorldWithDocs/HelloWorldWithDocs.mproj deleted file mode 100644 index 82a9afc..0000000 --- a/samples/HelloWorldWithDocs/HelloWorldWithDocs.mproj +++ /dev/null @@ -1,94 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - HelloWorldWithDocs - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Content - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/HelloWorldWithDocs/HelloWorldWithDocs.pq b/samples/HelloWorldWithDocs/HelloWorldWithDocs.pq index d7dc393..f2b2e01 100644 --- a/samples/HelloWorldWithDocs/HelloWorldWithDocs.pq +++ b/samples/HelloWorldWithDocs/HelloWorldWithDocs.pq @@ -48,8 +48,6 @@ HelloWorldWithDocs = [ Authentication = [ Anonymous = [] ] - // , - // Label = "Hello World With Docs" ]; // Data Source UI publishing description diff --git a/samples/HelloWorldWithDocs/HelloWorldWithDocs.proj b/samples/HelloWorldWithDocs/HelloWorldWithDocs.proj new file mode 100644 index 0000000..c36f815 --- /dev/null +++ b/samples/HelloWorldWithDocs/HelloWorldWithDocs.proj @@ -0,0 +1,22 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + diff --git a/samples/HelloWorldWithDocs/README.md b/samples/HelloWorldWithDocs/README.md index 3c96a5d..0d913b9 100644 --- a/samples/HelloWorldWithDocs/README.md +++ b/samples/HelloWorldWithDocs/README.md @@ -1,4 +1,5 @@ # Hello World with Documentation + This sample shows how to add documentation to your shared functions. To simply the code sample, the project is not using string or icon resources. In a real extension, you would use `Extension.LoadString` to load (localized) strings from your resources.resx file. **Function invocation** diff --git a/samples/NativeQuery/ODBC/SQL ODBC/Finish/.vscode/settings.json b/samples/NativeQuery/ODBC/SQL ODBC/Finish/.vscode/settings.json new file mode 100644 index 0000000..e3b5717 --- /dev/null +++ b/samples/NativeQuery/ODBC/SQL ODBC/Finish/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\SqlODBC.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\SqlODBC.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC.pq b/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC.pq index 68a3391..b755c51 100644 --- a/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC.pq +++ b/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC.pq @@ -11,9 +11,6 @@ section SqlODBC; // no-op and simply returns the original value. EnableTraceOutput = true; -// TODO -// add handling for SSL - /**************************** * ODBC Driver Configuration ****************************/ diff --git a/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC.proj b/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC.proj new file mode 100644 index 0000000..6232d1a --- /dev/null +++ b/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC.proj @@ -0,0 +1,32 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC80.png b/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC80.png deleted file mode 100644 index 958e236..0000000 Binary files a/samples/NativeQuery/ODBC/SQL ODBC/Finish/SqlODBC80.png and /dev/null differ diff --git a/samples/NativeQuery/ODBC/SQL ODBC/Start/.vscode/settings.json b/samples/NativeQuery/ODBC/SQL ODBC/Start/.vscode/settings.json new file mode 100644 index 0000000..e3b5717 --- /dev/null +++ b/samples/NativeQuery/ODBC/SQL ODBC/Start/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\SqlODBC.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\SqlODBC.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC.pq b/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC.pq index 5043197..df50440 100644 --- a/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC.pq +++ b/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC.pq @@ -11,9 +11,6 @@ section SqlODBC; // no-op and simply returns the original value. EnableTraceOutput = true; -// TODO -// add handling for SSL - /**************************** * ODBC Driver Configuration ****************************/ diff --git a/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC.proj b/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC.proj new file mode 100644 index 0000000..6232d1a --- /dev/null +++ b/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC.proj @@ -0,0 +1,32 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC80.png b/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC80.png deleted file mode 100644 index 958e236..0000000 Binary files a/samples/NativeQuery/ODBC/SQL ODBC/Start/SqlODBC80.png and /dev/null differ diff --git a/samples/NavigationTable/.vscode/settings.json b/samples/NavigationTable/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/NavigationTable/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/NavigationTable/NavigationTable.mez b/samples/NavigationTable/NavigationTable.mez deleted file mode 100644 index f75f9c2..0000000 Binary files a/samples/NavigationTable/NavigationTable.mez and /dev/null differ diff --git a/samples/NavigationTable/NavigationTable.mproj b/samples/NavigationTable/NavigationTable.mproj deleted file mode 100644 index fa1274d..0000000 --- a/samples/NavigationTable/NavigationTable.mproj +++ /dev/null @@ -1,94 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - NavigationTable - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Content - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/NavigationTable/NavigationTable.pq b/samples/NavigationTable/NavigationTable.pq index c910dcf..8f44ecc 100644 --- a/samples/NavigationTable/NavigationTable.pq +++ b/samples/NavigationTable/NavigationTable.pq @@ -10,7 +10,7 @@ shared NavigationTable.Simple = () as table => {"Item1", "item1", #table({"Column1"}, {{"Item1"}}), "Table", "Table", true}, {"Item2", "item2", #table({"Column1"}, {{"Item2"}}), "Table", "Table", true}, {"Item3", "item3", FunctionCallThatReturnsATable(), "Table", "Table", true}, - {"MyFunction", "myfunction", AnotherFunction.Contents(), "Function", "Function", true} + {"MyFunction", "myfunction", AnotherFunction.Contents, "Function", "Function", true} } ), NavTable = Table.ToNavigationTable(objects, {"Key"}, "Name", "Data", "ItemKind", "ItemName", "IsLeaf") @@ -37,11 +37,13 @@ shared NavigationTable.Icons = () as table => let // Dynamically builds a navigation table that uses all possible item kind icons itemKinds = { + // Cube related item kinds can only be used for actual Cube sources. + // The Power Query SDK currently only supports Table sources. + // "Cube", + // "CubeDatabase", + // "CubeView", + // "CubeViewFolder", "Feed", - "Cube", - "CubeDatabase", - "CubeView", - "CubeViewFolder", "Database", "DatabaseServer", "Dimension", diff --git a/samples/NavigationTable/NavigationTable.proj b/samples/NavigationTable/NavigationTable.proj new file mode 100644 index 0000000..301d033 --- /dev/null +++ b/samples/NavigationTable/NavigationTable.proj @@ -0,0 +1,22 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + diff --git a/samples/NavigationTable/README.md b/samples/NavigationTable/README.md index 9c5e26b..4c2d7fc 100644 --- a/samples/NavigationTable/README.md +++ b/samples/NavigationTable/README.md @@ -1,4 +1,5 @@ # Navigation Table Sample + This sample provides two examples of how to create a navigation table for your data connector using the `Table.ToNavigationTable` function. Please see [Handling Navigation Tables](https://docs.microsoft.com/en-us/power-query/handlingnavigationtables) in the PQ Docs for a full write up. diff --git a/samples/ODBC/HiveSample/.vscode/settings.json b/samples/ODBC/HiveSample/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/ODBC/HiveSample/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/ODBC/HiveSample/HiveSample.mproj b/samples/ODBC/HiveSample/HiveSample.mproj deleted file mode 100644 index 233c347..0000000 --- a/samples/ODBC/HiveSample/HiveSample.mproj +++ /dev/null @@ -1,125 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - True - True - True - False - False - False - 1000 - Yes - HiveSample - True - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Content - - - Code - - - Content - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/ODBC/HiveSample/HiveSample.pq b/samples/ODBC/HiveSample/HiveSample.pq index 587306d..bb40bbf 100644 --- a/samples/ODBC/HiveSample/HiveSample.pq +++ b/samples/ODBC/HiveSample/HiveSample.pq @@ -179,7 +179,6 @@ shared HiveSample.Contents = (host as text, port as number) => CreateNavigationProperties = true, // These values should be set by previous steps CredentialConnectionString = CredentialConnectionString, - AstVisitor = AstVisitor, SqlCapabilities = SqlCapabilities, SQLColumns = SQLColumns, SQLGetInfo = SQLGetInfo, @@ -334,8 +333,7 @@ Diagnostics = Extension.LoadFunction("Diagnostics.pqm"); Diagnostics.LogValue = if (EnableTraceOutput) then Diagnostics[LogValue] else (prefix, value) => value; -// OdbcConstants contains numeric constants from the ODBC header files, and a -// helper function to create bitfield values. +// OdbcConstants contains numeric constants from the ODBC header files, and a helper function to create bitfield values. ODBC = Extension.LoadFunction("OdbcConstants.pqm"); // Expose the constants and bitfield helpers diff --git a/samples/ODBC/HiveSample/HiveSample.proj b/samples/ODBC/HiveSample/HiveSample.proj new file mode 100644 index 0000000..15b5435 --- /dev/null +++ b/samples/ODBC/HiveSample/HiveSample.proj @@ -0,0 +1,32 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/ODBC/HiveSample/HiveSample80.png b/samples/ODBC/HiveSample/HiveSample80.png deleted file mode 100644 index 673dce5..0000000 Binary files a/samples/ODBC/HiveSample/HiveSample80.png and /dev/null differ diff --git a/samples/ODBC/ImpalaODBC/.vscode/settings.json b/samples/ODBC/ImpalaODBC/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/ODBC/ImpalaODBC/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/ODBC/ImpalaODBC/ImpalaODBC.mez b/samples/ODBC/ImpalaODBC/ImpalaODBC.mez deleted file mode 100644 index a7d3080..0000000 Binary files a/samples/ODBC/ImpalaODBC/ImpalaODBC.mez and /dev/null differ diff --git a/samples/ODBC/ImpalaODBC/ImpalaODBC.mproj b/samples/ODBC/ImpalaODBC/ImpalaODBC.mproj deleted file mode 100644 index d8c4e7a..0000000 --- a/samples/ODBC/ImpalaODBC/ImpalaODBC.mproj +++ /dev/null @@ -1,91 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - ImpalaODBC - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/ODBC/ImpalaODBC/ImpalaODBC.pq b/samples/ODBC/ImpalaODBC/ImpalaODBC.pq index 542242f..14bf150 100644 --- a/samples/ODBC/ImpalaODBC/ImpalaODBC.pq +++ b/samples/ODBC/ImpalaODBC/ImpalaODBC.pq @@ -1,4 +1,5 @@ -section ImpalaODBC; +[Version = "1.0.0"] +section ImpalaODBC; DefaultPort = 21050; @@ -170,7 +171,7 @@ GetAddress = (server as text) as record => ImpalaODBC = [ Authentication = [ - Implicit = [], + Anonymous = [], UsernamePassword = [], Windows = [SupportsAlternateCredentials = true] ], diff --git a/samples/ODBC/ImpalaODBC/ImpalaODBC.proj b/samples/ODBC/ImpalaODBC/ImpalaODBC.proj new file mode 100644 index 0000000..a5d85fc --- /dev/null +++ b/samples/ODBC/ImpalaODBC/ImpalaODBC.proj @@ -0,0 +1,22 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + diff --git a/samples/ODBC/RedshiftODBC/.vscode/settings.json b/samples/ODBC/RedshiftODBC/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/ODBC/RedshiftODBC/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/ODBC/RedshiftODBC/RedshiftODBC.mez b/samples/ODBC/RedshiftODBC/RedshiftODBC.mez deleted file mode 100644 index 534e5de..0000000 Binary files a/samples/ODBC/RedshiftODBC/RedshiftODBC.mez and /dev/null differ diff --git a/samples/ODBC/RedshiftODBC/RedshiftODBC.mproj b/samples/ODBC/RedshiftODBC/RedshiftODBC.mproj deleted file mode 100644 index 621f924..0000000 --- a/samples/ODBC/RedshiftODBC/RedshiftODBC.mproj +++ /dev/null @@ -1,97 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - RedshiftODBC - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/ODBC/RedshiftODBC/RedshiftODBC.pq b/samples/ODBC/RedshiftODBC/RedshiftODBC.pq index 958315c..e710917 100644 --- a/samples/ODBC/RedshiftODBC/RedshiftODBC.pq +++ b/samples/ODBC/RedshiftODBC/RedshiftODBC.pq @@ -1,4 +1,5 @@ -section RedshiftODBC; +[Version = "1.0.0"] +section RedshiftODBC; // When set to true, additional trace information will be written out to the User log. // This should be set to false before release. Tracing is done through a call to diff --git a/samples/ODBC/RedshiftODBC/RedshiftODBC.proj b/samples/ODBC/RedshiftODBC/RedshiftODBC.proj new file mode 100644 index 0000000..f75104e --- /dev/null +++ b/samples/ODBC/RedshiftODBC/RedshiftODBC.proj @@ -0,0 +1,24 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + diff --git a/samples/ODBC/SnowflakeODBC/.vscode/settings.json b/samples/ODBC/SnowflakeODBC/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/ODBC/SnowflakeODBC/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/ODBC/SnowflakeODBC/SnowflakeODBC.mez b/samples/ODBC/SnowflakeODBC/SnowflakeODBC.mez deleted file mode 100644 index c153433..0000000 Binary files a/samples/ODBC/SnowflakeODBC/SnowflakeODBC.mez and /dev/null differ diff --git a/samples/ODBC/SnowflakeODBC/SnowflakeODBC.mproj b/samples/ODBC/SnowflakeODBC/SnowflakeODBC.mproj deleted file mode 100644 index 578cfdc..0000000 --- a/samples/ODBC/SnowflakeODBC/SnowflakeODBC.mproj +++ /dev/null @@ -1,97 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - SnowflakeODBC - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/ODBC/SnowflakeODBC/SnowflakeODBC.pq b/samples/ODBC/SnowflakeODBC/SnowflakeODBC.pq index 37254d1..c955172 100644 --- a/samples/ODBC/SnowflakeODBC/SnowflakeODBC.pq +++ b/samples/ODBC/SnowflakeODBC/SnowflakeODBC.pq @@ -1,4 +1,5 @@ -section SnowflakeODBC; +[Version = "1.0.0"] +section SnowflakeODBC; // When set to true, additional trace information will be written out to the User log. // This should be set to false before release. Tracing is done through a call to diff --git a/samples/ODBC/SnowflakeODBC/SnowflakeODBC.proj b/samples/ODBC/SnowflakeODBC/SnowflakeODBC.proj new file mode 100644 index 0000000..c5f7158 --- /dev/null +++ b/samples/ODBC/SnowflakeODBC/SnowflakeODBC.proj @@ -0,0 +1,23 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + diff --git a/samples/ODBC/SnowflakeODBC/SnowflakeODBCWithTrace.mez b/samples/ODBC/SnowflakeODBC/SnowflakeODBCWithTrace.mez deleted file mode 100644 index d2dc652..0000000 Binary files a/samples/ODBC/SnowflakeODBC/SnowflakeODBCWithTrace.mez and /dev/null differ diff --git a/samples/ODBC/SqlODBC/.vscode/settings.json b/samples/ODBC/SqlODBC/.vscode/settings.json index d19110b..4cfb2b0 100644 --- a/samples/ODBC/SqlODBC/.vscode/settings.json +++ b/samples/ODBC/SqlODBC/.vscode/settings.json @@ -1,4 +1,5 @@ { "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", - "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq" + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", } \ No newline at end of file diff --git a/samples/ODBC/SqlODBC/SqlODBC.mproj b/samples/ODBC/SqlODBC/SqlODBC.mproj deleted file mode 100644 index d648379..0000000 --- a/samples/ODBC/SqlODBC/SqlODBC.mproj +++ /dev/null @@ -1,125 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - True - False - True - False - False - False - 1000 - Yes - SqlODBC - True - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Content - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/ODBC/SqlODBC/SqlODBC.pq b/samples/ODBC/SqlODBC/SqlODBC.pq index 2f5836a..064b09a 100644 --- a/samples/ODBC/SqlODBC/SqlODBC.pq +++ b/samples/ODBC/SqlODBC/SqlODBC.pq @@ -11,8 +11,6 @@ section SqlODBC; // no-op and simply returns the original value. EnableTraceOutput = true; -// TODO -// add handling for SSL /**************************** * ODBC Driver Configuration ****************************/ diff --git a/samples/ODBC/SqlODBC/SqlODBC.proj b/samples/ODBC/SqlODBC/SqlODBC.proj new file mode 100644 index 0000000..9fa120f --- /dev/null +++ b/samples/ODBC/SqlODBC/SqlODBC.proj @@ -0,0 +1,24 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + diff --git a/samples/ODBC/SqlODBC/SqlODBC80.png b/samples/ODBC/SqlODBC/SqlODBC80.png deleted file mode 100644 index 958e236..0000000 Binary files a/samples/ODBC/SqlODBC/SqlODBC80.png and /dev/null differ diff --git a/samples/OData/AnnotationsSample/.vscode/settings.json b/samples/OData/AnnotationsSample/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/OData/AnnotationsSample/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/OData/AnnotationsSample/AnnotationsSample.mproj b/samples/OData/AnnotationsSample/AnnotationsSample.mproj deleted file mode 100644 index e8cc7ca..0000000 --- a/samples/OData/AnnotationsSample/AnnotationsSample.mproj +++ /dev/null @@ -1,122 +0,0 @@ - - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - AnnotationsSample - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Content - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/OData/AnnotationsSample/AnnotationsSample.pq b/samples/OData/AnnotationsSample/AnnotationsSample.pq index eee9e60..caaf15f 100644 --- a/samples/OData/AnnotationsSample/AnnotationsSample.pq +++ b/samples/OData/AnnotationsSample/AnnotationsSample.pq @@ -1,24 +1,24 @@ -section TripPinAnnotations; +[Version = "1.0.0"] +section AnnotationsSample; // Data Source Kind description -TripPin = [ +AnnotationsSample = [ // TestConnection is required to enable the connector through the Gateway - TestConnection = (dataSourcePath) => {"TripPin.Annotations"}, + TestConnection = (dataSourcePath) => {"AnnotationsSample.Contents"}, Authentication = [ Anonymous = [] - ], - Label = "AnnotationsSample" + ] ]; // Data Source UI publishing description -TripPin.Publish = [ +AnnotationsSample.Publish = [ Beta = true, Category = "Other", ButtonText = {"AnnotationsSample", "AnnotationsSample"} ]; -[DataSource.Kind = "TripPin", Publish = "TripPin.Publish"] -shared TripPin.Annotations = () => +[DataSource.Kind = "AnnotationsSample", Publish = "AnnotationsSample.Publish"] +shared AnnotationsSample.Contents = () => let serviceDocument = TripPin.ServiceDocument() in diff --git a/samples/OData/AnnotationsSample/AnnotationsSample.proj b/samples/OData/AnnotationsSample/AnnotationsSample.proj new file mode 100644 index 0000000..721fcc6 --- /dev/null +++ b/samples/OData/AnnotationsSample/AnnotationsSample.proj @@ -0,0 +1,30 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/OData/AnnotationsSample/AnnotationsSample.query.pq b/samples/OData/AnnotationsSample/AnnotationsSample.query.pq index 2189f7c..2c94e0f 100644 --- a/samples/OData/AnnotationsSample/AnnotationsSample.query.pq +++ b/samples/OData/AnnotationsSample/AnnotationsSample.query.pq @@ -1,2 +1 @@ -// Use this file to write queries to test your data connector -let result = TripPin.Annotations() in result +AnnotationsSample.Contents() diff --git a/samples/OData/AnnotationsSample/AnnotationsSample80.png b/samples/OData/AnnotationsSample/AnnotationsSample80.png deleted file mode 100644 index 673dce5..0000000 Binary files a/samples/OData/AnnotationsSample/AnnotationsSample80.png and /dev/null differ diff --git a/samples/OpenApiSample/.vscode/settings.json b/samples/OpenApiSample/.vscode/settings.json new file mode 100644 index 0000000..4cfb2b0 --- /dev/null +++ b/samples/OpenApiSample/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/OpenApiSample/OpenApiSample.mproj b/samples/OpenApiSample/OpenApiSample.mproj deleted file mode 100644 index ecc37f5..0000000 --- a/samples/OpenApiSample/OpenApiSample.mproj +++ /dev/null @@ -1,97 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - OpenApiSample - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - Content - - - Content - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/OpenApiSample/OpenApiSample.proj b/samples/OpenApiSample/OpenApiSample.proj new file mode 100644 index 0000000..5f57d87 --- /dev/null +++ b/samples/OpenApiSample/OpenApiSample.proj @@ -0,0 +1,23 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + + diff --git a/samples/OpenApiSample/README.md b/samples/OpenApiSample/README.md index df34835..19699c3 100644 --- a/samples/OpenApiSample/README.md +++ b/samples/OpenApiSample/README.md @@ -4,9 +4,9 @@ Open API (aka Swagger) is a standard for describing REST APIs through a JSON def Swagger allows clients to interact with a given REST API without pre-existing knowledge of the source. Swagger is a very similar in concept to OData, but can be thought of a way to describe Function calls, as opposed to OData's focus on standardized data retrieval. -The `OpenApi.Document` function in the M engine can be used to create a simple Data Connector from a Swagger document. +The `OpenApi.Document` function in the M engine can be used to create a simple Data Connector from a Swagger document. -> **Note:** `OpenApi.Document` is only available via extensibility. You will not be able to directly invoke this function from Power BI Desktop or other Power Query experiences. +> **Note:** `OpenApi.Document` is only available via extensibility. You will not be able to directly invoke this function from Power BI Desktop or other Power Query experiences. ## Limitations @@ -57,5 +57,4 @@ Note, given the [limitations] described above, the majority of the APIs found he ### Additional Samples -Please see the [Data.World Swagger](../DataWorldSwagger) sample for a connector with custom OAuth flow, and API Key based authentication. - +Please see the [Data.World Swagger](../DataWorldSwagger) sample for a connector with custom OAuth flow, and API Key based authentication. diff --git a/samples/TripPin/1-OData/.vscode/settings.json b/samples/TripPin/1-OData/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/1-OData/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/1-OData/TripPin.mproj b/samples/TripPin/1-OData/TripPin.mproj deleted file mode 100644 index d0faeb5..0000000 --- a/samples/TripPin/1-OData/TripPin.mproj +++ /dev/null @@ -1,90 +0,0 @@ - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - TripPin - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/1-OData/TripPin.proj b/samples/TripPin/1-OData/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/1-OData/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/10-TableView1/.vscode/settings.json b/samples/TripPin/10-TableView1/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/10-TableView1/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/10-TableView1/README.md b/samples/TripPin/10-TableView1/README.md index 5c0fb20..9346cb6 100644 --- a/samples/TripPin/10-TableView1/README.md +++ b/samples/TripPin/10-TableView1/README.md @@ -4,8 +4,8 @@ This multi-part tutorial covers the creation of a new data source extension for In this lesson, you will: -* Learn the basics of query folding -* Learn about the `Table.View` function +* Learn the basics of query folding +* Learn about the `Table.View` function * Replicate OData query folding handlers for * `$top` * `$skip` diff --git a/samples/TripPin/10-TableView1/TripPin.mproj b/samples/TripPin/10-TableView1/TripPin.mproj deleted file mode 100644 index a24688d..0000000 --- a/samples/TripPin/10-TableView1/TripPin.mproj +++ /dev/null @@ -1,107 +0,0 @@ - - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - True - False - True - True - False - False - 1000 - Yes - TripPin - True - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Content - - - Content - - - Content - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/10-TableView1/TripPin.proj b/samples/TripPin/10-TableView1/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/10-TableView1/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/2-Rest/.vscode/settings.json b/samples/TripPin/2-Rest/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/2-Rest/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/2-Rest/TripPin.mproj b/samples/TripPin/2-Rest/TripPin.mproj deleted file mode 100644 index d0faeb5..0000000 --- a/samples/TripPin/2-Rest/TripPin.mproj +++ /dev/null @@ -1,90 +0,0 @@ - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - TripPin - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/2-Rest/TripPin.proj b/samples/TripPin/2-Rest/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/2-Rest/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/3-NavTables/.vscode/settings.json b/samples/TripPin/3-NavTables/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/3-NavTables/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/3-NavTables/TripPin.mproj b/samples/TripPin/3-NavTables/TripPin.mproj deleted file mode 100644 index d0faeb5..0000000 --- a/samples/TripPin/3-NavTables/TripPin.mproj +++ /dev/null @@ -1,90 +0,0 @@ - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - TripPin - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/3-NavTables/TripPin.proj b/samples/TripPin/3-NavTables/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/3-NavTables/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/4-Paths/.vscode/settings.json b/samples/TripPin/4-Paths/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/4-Paths/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/4-Paths/TripPin.mproj b/samples/TripPin/4-Paths/TripPin.mproj deleted file mode 100644 index 38b8ea0..0000000 --- a/samples/TripPin/4-Paths/TripPin.mproj +++ /dev/null @@ -1,94 +0,0 @@ - - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - TripPin - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/4-Paths/TripPin.proj b/samples/TripPin/4-Paths/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/4-Paths/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/5-Paging/.vscode/settings.json b/samples/TripPin/5-Paging/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/5-Paging/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/5-Paging/TripPin.mproj b/samples/TripPin/5-Paging/TripPin.mproj deleted file mode 100644 index 38b8ea0..0000000 --- a/samples/TripPin/5-Paging/TripPin.mproj +++ /dev/null @@ -1,94 +0,0 @@ - - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - TripPin - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/5-Paging/TripPin.proj b/samples/TripPin/5-Paging/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/5-Paging/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/6-Schema/.vscode/settings.json b/samples/TripPin/6-Schema/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/6-Schema/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/6-Schema/TripPin.mproj b/samples/TripPin/6-Schema/TripPin.mproj deleted file mode 100644 index 38b8ea0..0000000 --- a/samples/TripPin/6-Schema/TripPin.mproj +++ /dev/null @@ -1,94 +0,0 @@ - - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - TripPin - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/6-Schema/TripPin.proj b/samples/TripPin/6-Schema/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/6-Schema/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/7-AdvancedSchema/.vscode/settings.json b/samples/TripPin/7-AdvancedSchema/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/7-AdvancedSchema/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/7-AdvancedSchema/TripPin.mproj b/samples/TripPin/7-AdvancedSchema/TripPin.mproj deleted file mode 100644 index c490b57..0000000 --- a/samples/TripPin/7-AdvancedSchema/TripPin.mproj +++ /dev/null @@ -1,103 +0,0 @@ - - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - True - True - False - False - False - False - 1000 - Yes - TripPin - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Content - - - Content - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/7-AdvancedSchema/TripPin.proj b/samples/TripPin/7-AdvancedSchema/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/7-AdvancedSchema/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/8-Diagnostics/.vscode/settings.json b/samples/TripPin/8-Diagnostics/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/8-Diagnostics/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/8-Diagnostics/TripPin.mproj b/samples/TripPin/8-Diagnostics/TripPin.mproj deleted file mode 100644 index 910897e..0000000 --- a/samples/TripPin/8-Diagnostics/TripPin.mproj +++ /dev/null @@ -1,107 +0,0 @@ - - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - True - False - True - True - False - False - 1000 - Yes - TripPin - False - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Content - - - Content - - - Content - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/8-Diagnostics/TripPin.proj b/samples/TripPin/8-Diagnostics/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/8-Diagnostics/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/TripPin/9-TestConnection/.vscode/settings.json b/samples/TripPin/9-TestConnection/.vscode/settings.json new file mode 100644 index 0000000..e39d60f --- /dev/null +++ b/samples/TripPin/9-TestConnection/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\TripPin.mez", + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\TripPin.query.pq", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/TripPin/9-TestConnection/TripPin.mproj b/samples/TripPin/9-TestConnection/TripPin.mproj deleted file mode 100644 index 910897e..0000000 --- a/samples/TripPin/9-TestConnection/TripPin.mproj +++ /dev/null @@ -1,107 +0,0 @@ - - - - Debug - 2.0 - {cd1a0776-2ef1-4748-84c7-96118b1bbdf9} - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - True - False - True - True - False - False - 1000 - Yes - TripPin - False - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Content - - - Content - - - Content - - - Content - - - Content - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/TripPin/9-TestConnection/TripPin.proj b/samples/TripPin/9-TestConnection/TripPin.proj new file mode 100644 index 0000000..e5e60dd --- /dev/null +++ b/samples/TripPin/9-TestConnection/TripPin.proj @@ -0,0 +1,26 @@ + + + + TripPin + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(ConnectorName).mez + + + + + + + + + + + + + + + + diff --git a/samples/UnitTesting/.vscode/settings.json b/samples/UnitTesting/.vscode/settings.json new file mode 100644 index 0000000..320fa6a --- /dev/null +++ b/samples/UnitTesting/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq", + "powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez", + "powerquery.general.mode": "SDK", +} \ No newline at end of file diff --git a/samples/UnitTesting/README.md b/samples/UnitTesting/README.md index 8b970cf..3e1a35d 100644 --- a/samples/UnitTesting/README.md +++ b/samples/UnitTesting/README.md @@ -1,4 +1,5 @@ # Unit Testing Sample -This sample shows how you can add simple unit testing to your `.query.pq file`. + +This sample shows how you can add simple unit testing to your `.query.pq file`. Please see [Handling Unit Testing](https://docs.microsoft.com/en-us/power-query/handlingunittesting) in the PQ Docs for a full write up. diff --git a/samples/UnitTesting/UnitTesting.mez b/samples/UnitTesting/UnitTesting.mez deleted file mode 100644 index 9cfce51..0000000 Binary files a/samples/UnitTesting/UnitTesting.mez and /dev/null differ diff --git a/samples/UnitTesting/UnitTesting.mproj b/samples/UnitTesting/UnitTesting.mproj deleted file mode 100644 index d4b4c7f..0000000 --- a/samples/UnitTesting/UnitTesting.mproj +++ /dev/null @@ -1,91 +0,0 @@ - - - Debug - 2.0 - - - Exe - MyRootNamespace - MyAssemblyName - False - False - False - False - False - False - False - False - False - False - 1000 - Yes - UnitTesting - - - false - - bin\Debug\ - - - false - bin\Release\ - - - - - - - - - - Code - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/UnitTesting/UnitTesting.proj b/samples/UnitTesting/UnitTesting.proj new file mode 100644 index 0000000..c491a50 --- /dev/null +++ b/samples/UnitTesting/UnitTesting.proj @@ -0,0 +1,22 @@ + + + + $(MSBuildProjectDirectory)\bin\AnyCPU\Debug\ + $(MSBuildProjectDirectory)\obj\ + $(IntermediateOutputPath)MEZ\ + $(OutputPath)$(MsBuildProjectName).mez + + + + + + + + + + + + + + + diff --git a/samples/dirs.proj b/samples/dirs.proj new file mode 100644 index 0000000..6214181 --- /dev/null +++ b/samples/dirs.proj @@ -0,0 +1,6 @@ + + + + + + diff --git a/samples/global.json b/samples/global.json new file mode 100644 index 0000000..3cc0456 --- /dev/null +++ b/samples/global.json @@ -0,0 +1,6 @@ +{ + "msbuild-sdks": { + "Microsoft.Build.NoTargets": "2.0.1", + "Microsoft.Build.Traversal": "3.0.2" + } +}