jsonPath method

SqlPredicate<T> jsonPath(
  1. String path
)

Tests whether a SQL/JSON path finds a value in the JSON document. Throws TikalUnsupportedException outside PostgreSQL or on non-JSON columns.

Implementation

SqlPredicate<T> jsonPath(String path) {
  if (sqlType != SqlType.json && sqlType != SqlType.jsonb) {
    throw const TikalUnsupportedException('jsonPath requires a JSON column.');
  }
  return _JsonPathPredicate<T>(this, path);
}