jsonEach method

JsonTableFunction jsonEach(
  1. DatabaseConnectionUser database, [
  2. String? path
])

Calls the json_each table-valued function on this string, optionally using path as the root path.

This can be used to join every element in a JSON structure to a drift query.

See also: The sqlite3 documentation and JsonTableFunction.

Implementation

JsonTableFunction jsonEach(DatabaseConnectionUser database, [String? path]) {
  return JsonTableFunction._(database, functionName: 'json_each', arguments: [
    this,
    if (path != null) Variable(path),
  ]);
}