You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,28 +9,25 @@ A second project "[KustoSchemaToolsAction](https://github.com/github/KustoSchema
9
9
The `database` object holds all schema related information for a Kusto database. It can be loaded from, or written to a cluster using the `KustoDatabaseHandler` which can be created by the `KustoDatabaseHandlerFactory`.There are several steps involved for loading a all relevant information from a kusto database into the `database` object. These are covered by different plugins, which can be configured for the `KustoDatabaseHandlerFactory`.
Forsyncrhonizingittofiles, the `YamlDatabaseHandler` andthe `YamlDatabaseHandlerFactory` aretherighttools. Topreventsuperlargefiles, therearepluginsthathandlereadingandwritingfunctions, tablesandmaterializedviewstoseparatefilesandfolders. Theycanbeconfiguredfor the `YamlDatabaseHandlerFactory`.
25
24
26
25
```csharp
27
-
28
26
var yamlFactory = new YamlDatabaseHandlerFactory()
29
27
.WithPlugin(newTablePlugin())
30
28
.WithPlugin(newFunctionPlugin())
31
29
.WithPlugin(newMaterializedViewsPlugin())
32
30
.WithPlugin<DatabaseCleanup>();
33
-
34
31
```
35
32
36
33
Additional features can be added with custom plugins. A sample for `table groups`, where the some parts of the schema are defined once, but is applied for several tables can be found in [here](https://github.com/github/KustoSchemaToolsAction/blob/main/KustoSchemaCLI/Plugins/TableGroupPlugin.cs).
@@ -63,4 +60,4 @@ Currently following features are supported:
63
60
* Docstring
64
61
* Folder
65
62
66
-
The `DatabaseCleanup` will remove redundant retention and hotcache definitions. It will also pretty print KQL queries in functions, update policies and materialized views.
63
+
The `DatabaseCleanup` will remove redundant retention and hotcache definitions. It will also pretty print KQL queries in functions, update policies and materialized views.
0 commit comments