pg.symbolic.ObjectMeta¶
Accessible via pg.symbolic.ObjectMeta.
- class ObjectMeta(name, bases, namespace, **kwargs)[source]¶
Bases:
ABCMetaMeta class for pg.Object.
Methods:
apply_schema([schema])Applies a schema to a symbolic class.
register_for_deserialization([...])Register current symbolic class for deserialization.
update_schema(fields[, extend, ...])Updates the schema of the class.
Attributes:
Gets __init__ positional argument list.
Gets symbolic field.
- apply_schema(schema=None)[source]¶
Applies a schema to a symbolic class.
- Return type:
- Parameters:
schema – The schema that will be applied to class. If cls was attached with an existing schema. The old schema will be dropped. If None, the cls will update its signature and getters according to the (maybe updated) old schema.