mirror of
https://github.com/circuithub/rel8.git
synced 2024-09-11 16:05:41 +03:00
doc: Mention generics when declaring TableSchemas (#58)
This commit is contained in:
parent
137ebeda89
commit
92f7c08300
@ -147,6 +147,15 @@ And likewise for ``project`` and ``Project``::
|
||||
}
|
||||
}
|
||||
|
||||
There is also some generics machinery available if you want to grab the field information from your Rel8able type::
|
||||
|
||||
projectSchema :: TableSchema (Project Name)
|
||||
projectSchema = TableSchema
|
||||
{ name = "project"
|
||||
, schema = Nothing
|
||||
, columns = namesFromLabels @(Project Name)
|
||||
}
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user