UnparameterizedQuery

A Rule that prevents unparameterized queries, i.e. Cypher statements with literal values.

Refer to the AWS Neptune Analytics documentation for an explanation of the benefit of parameterized queries.

Functions

Link copied to clipboard
open infix override 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 override fun then(that: Rule): Rule

Run this Rule then that.

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

Validate the cypher and parameters.