Skip to content

Commit a8dea1c

Browse files
committed
Add documentation about new __schema__ clauses
1 parent 773eeb7 commit a8dea1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/ecto/schema.ex

+2
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,11 @@ defmodule Ecto.Schema do
405405
* `__schema__(:primary_key)` - Returns a list of primary key fields (empty if there is none);
406406
407407
* `__schema__(:fields)` - Returns a list of all non-virtual field names;
408+
* `__schema__(:virtual_fields)` - Returns a list of all virtual field names;
408409
* `__schema__(:field_source, field)` - Returns the alias of the given field;
409410
410411
* `__schema__(:type, field)` - Returns the type of the given non-virtual field;
412+
* `__schema__(:virtual_type, field)` - Returns the type of the given virtual field;
411413
412414
* `__schema__(:associations)` - Returns a list of all association field names;
413415
* `__schema__(:association, assoc)` - Returns the association reflection of the given assoc;

0 commit comments

Comments
 (0)