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

Method __init__

tortoise/fields/data.py:747–757  ·  view source on GitHub ↗
(
        self,
        encoder: JsonDumpsFunc = JSON_DUMPS,
        decoder: JsonLoadsFunc = JSON_LOADS,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

745 SQL_TYPE = "NCLOB"
746
747 def __init__(
748 self,
749 encoder: JsonDumpsFunc = JSON_DUMPS,
750 decoder: JsonLoadsFunc = JSON_LOADS,
751 **kwargs: Any,
752 ) -> None:
753 super().__init__(**kwargs)
754 self.encoder = encoder
755 self.decoder = decoder
756 if field_type := kwargs.get("field_type"):
757 self.field_type = field_type
758
759 def to_db_value(
760 self,

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected