MCPcopy
hub / github.com/django/django / get_substr

Method get_substr

django/db/models/functions/text.py:169–170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 super().__init__(expression, length, **extra)
168
169 def get_substr(self):
170 return Substr(self.source_expressions[0], Value(1), self.source_expressions[1])
171
172 def as_oracle(self, compiler, connection, **extra_context):
173 return self.get_substr().as_oracle(compiler, connection, **extra_context)

Callers 2

as_oracleMethod · 0.95
as_sqliteMethod · 0.95

Calls 2

ValueClass · 0.90
SubstrClass · 0.85

Tested by

no test coverage detected