Skip to content

Functions

In DataPrime, functions are essential for transforming values throughout a query. Functions can be utilized interchangeably as global functions or method calls. They define how data is manipulated and follow this syntax:

<function-name>(<expression>,<params>...): <return type>

<expression>.<function-name>(<params>): <return type>
  • DataPrime supports type and parameter inference for user convenience.
  • Autocompletion and suggestions are built-in features to enhance usability.

Function types

DataPrime offers various function types, including:

  • General
  • Aggregation
  • Array
  • IP
  • Number
  • String
  • Time
  • URL
  • UUID

For a detailed list of available functions and their use cases, please refer to the Function Lanaguage Reference.