jsonTree method

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

Calls the json_tree 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 jsonTree(DatabaseConnectionUser database, [String? path]) {
  return JsonTableFunction._(database, functionName: 'json_tree', arguments: [
    this,
    if (path != null) Variable(path),
  ]);
}