Skip to content

Commit df80573

Browse files
committed
docs: add "View" to the list of SQL entities
1 parent 4364eed commit df80573

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

+35
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,41 @@ class RecentOrdersView extends View
180180
}
181181
```
182182

183+
#### 📑 View
184+
185+
The `View` class is used to create views in the database.
186+
In addition to the options above, you can use the following options to further customize the view:
187+
188+
```php
189+
<?php
190+
191+
class RecentOrdersView extends View
192+
{
193+
// to create a recursive view
194+
protected bool $recursive = true;
195+
// adds a `WITH CHECK OPTION` clause to the view
196+
protected string|true|null $checkOption = 'cascaded';
197+
// can provide explicit column listing
198+
protected ?array $columns = ['id', 'customer_id', 'status', 'created_at'];
199+
}
200+
```
201+
202+
<!-- #### 💿 Materialized View -->
203+
<!---->
204+
<!-- #### 🛠 Function -->
205+
<!---->
206+
<!-- #### 📤 Procedure -->
207+
<!---->
208+
<!-- #### ⚡ Trigger -->
209+
<!---->
210+
<!-- #### 🔢 Sequence -->
211+
<!---->
212+
<!-- #### 🧳 Domain -->
213+
<!---->
214+
<!-- #### 🧬 Type -->
215+
<!---->
216+
<!-- #### 🛡 Policy -->
217+
183218
### 🧠 Manager
184219

185220
The `SqlEntityManager` singleton is responsible for creating and dropping SQL entities at runtime.

0 commit comments

Comments
 (0)