odatadol.metadata#
An entity type’s declared properties, read from the service’s CSDL $metadata.
entity_metadata() returns {name: {'type': ..., 'nullable': ...,
'annotations': {...}}} in declaration order, with Edm type names intact
(Edm.Decimal, Edm.Binary, Collection(Edm.String)), so a caller can decide how
to render a value or which properties are not worth fetching (a binary, a stream, a
server-side global). annotations is present only when the property has any.
Module Attributes
The CSDL namespace of OData v4. |
Functions
|
The declared properties of one entity set's type, in declaration order. |
|
The properties of |
- odatadol.metadata.EDM_NAMESPACE = 'http://docs.oasis-open.org/odata/ns/edm'#
The CSDL namespace of OData v4.
- odatadol.metadata.entity_metadata(service, entity, *, credentials=None, fetch=None)[source]#
The declared properties of one entity set’s type, in declaration order.
entitymay name the entity set (resolved through the container) or the type.
- odatadol.metadata.parse_entity_metadata(body, entity)[source]#
The properties of
entityin a CSDL document, inherited ones first.entitymay be an entity set, a qualified type (Namespace.NameorAlias.Name) or, when only one schema declares it, a type’s short name. Annotations are merged from inline<Annotation>and out-of-line<Annotations Target=...>elements.