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

Function mysql_ends_with

tortoise/backends/mysql/executor.py:68–71  ·  view source on GitHub ↗
(field: Term, value: str)

Source from the content-addressed store, hash-verified

66
67
68def mysql_ends_with(field: Term, value: str) -> Criterion:
69 return Like(
70 functions.Cast(field, SqlTypes.CHAR), StrWrapper(f"%{escape_like(value)}"), escape=""
71 )
72
73
74def mysql_insensitive_exact(field: Term, value: str) -> Criterion:

Callers

nothing calls this directly

Calls 3

LikeClass · 0.90
StrWrapperClass · 0.85
escape_likeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…