MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / describe

Method describe

tortoise/contrib/postgres/fields.py:73–82  ·  view source on GitHub ↗
(self, serializable: bool)

Source from the content-addressed store, hash-verified

71 return f"GENERATED ALWAYS AS ({expression}) STORED"
72
73 def describe(self, serializable: bool) -> dict:
74 desc = super().describe(serializable)
75 desc["source_fields"] = list(self.source_fields) if serializable else self.source_fields
76 desc["config"] = self.config
77 if self.weights is None:
78 desc["weights"] = None
79 else:
80 desc["weights"] = list(self.weights) if serializable else self.weights
81 desc["stored"] = self.stored
82 return desc
83
84 class _db_postgres:
85 def __init__(self, field: TSVectorField) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected