Rule

Types

Link copied to clipboard
value class Violation(val message: String)

A Violation describes why a Cypher query violates a Rule.

Functions

Link copied to clipboard
open infix fun excludes(regexes: Collection<Regex>): Rule

Exclude the Cypher query from Rule validation if it matches any of the regexes.

Link copied to clipboard
open infix fun then(that: Rule): Rule

Run this Rule then that.

Link copied to clipboard
abstract fun validate(cypher: String, parameters: Map<String, Any?>): Rule.Violation?

Validate the cypher and parameters.