graveyard v0.6.0 Graveyard.Support View Source

Access configuration values

Link to this section Summary

Functions

Returns the configured regex to validate format of date strings

Returns the configured regex to validate format of datetime strings

Returns the configured ElasticSearch index name

Returns the configured mappings map

Returns the configured mappings module

Returns an array of all fields of numeric types recursively. All numeric types fields (:integer, :number) will be returned, even they are nested inside an :object or :oblist schema. This is useful for functions such as group. String names returned instead of atoms. For fields inside nested schemas, the parent key is appended to the name (i.e. “topic.followers”)

Returns the configured ElasticSearch type name

Returns the configured value of the validate before insertion option

Returns the configured value of the validate before update option

Link to this section Functions

Returns the configured regex to validate format of date strings

Returns the configured regex to validate format of datetime strings

Returns the configured ElasticSearch index name

Returns the configured mappings map

Returns the configured mappings module

Link to this function numerical_fields(config \\ Graveyard.Support.mappings(), parent \\ "") View Source

Returns an array of all fields of numeric types recursively. All numeric types fields (:integer, :number) will be returned, even they are nested inside an :object or :oblist schema. This is useful for functions such as group. String names returned instead of atoms. For fields inside nested schemas, the parent key is appended to the name (i.e. “topic.followers”).

Returns the configured ElasticSearch type name

Link to this function validate_before_insert() View Source

Returns the configured value of the validate before insertion option

Link to this function validate_before_update() View Source

Returns the configured value of the validate before update option