... | @@ -150,7 +150,7 @@ The `cte.sub_query` option works in the same way as the `cte.query`, which means |
... | @@ -150,7 +150,7 @@ The `cte.sub_query` option works in the same way as the `cte.query`, which means |
|
|
|
|
|
Recursive CTE is also available in its detached form through `ToruqeRecursiveCTE` and works similar to its normal form with the addition of the extra settings available only for recursive operations: `sub_query`, `connect`, `union_all`, `with_depth`, and `with_path`.
|
|
Recursive CTE is also available in its detached form through `ToruqeRecursiveCTE` and works similar to its normal form with the addition of the extra settings available only for recursive operations: `sub_query`, `connect`, `union_all`, `with_depth`, and `with_path`.
|
|
|
|
|
|
You can combine the detached form and a plain query to load the recursivity result:
|
|
You can combine the detached form and a plain query to load the recursion result:
|
|
```ruby
|
|
```ruby
|
|
class CoursesController < ApplicationController
|
|
class CoursesController < ApplicationController
|
|
def index
|
|
def index
|
... | | ... | |