see on GitHub

Commands : Transformers : Get

There are few methods that allow you to retrieve transformers from a database:
- GetTransformer
- GetTransformers

GetTransformer

GetTransformer is used to retrieve a single transformer

Syntax

TransformerDefinition GetTransformer(string name);

Parameters
name string transformer name
Return Value
TransformerDefinition Instance of TransformerDefinition representing transformer.

Example

TransformerDefinition transformer = store
	.DatabaseCommands
	.GetTransformer("Order/Statistics"); // returns null if does not exist

GetTransformers

GetTransformers is used to retrieve a multiple transformers

Syntax

TransformerDefinition[] GetTransformers(int start, int pageSize);

Parameters
start int number of documents that should be skipped
pageSize int maximum number of transformers that will be retrieved
Return Value
TransformerDefinition Instance of TransformerDefinition representing a transformer.

Example

TransformerDefinition[] transformers = store
	.DatabaseCommands
	.GetTransformers(0, 128);