MCPcopy
hub / github.com/simple-salesforce/simple-salesforce / format_soql

Function format_soql

simple_salesforce/format.py:43–45  ·  view source on GitHub ↗

Insert values quoted for SOQL into a format string

(query: str, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

41
42
43def format_soql(query: str, *args: Any, **kwargs: Any) -> str:
44 """ Insert values quoted for SOQL into a format string """
45 return SoqlFormatter().vformat(query, args, kwargs)
46
47
48# pylint: disable=too-many-return-statements

Callers 12

test_plain_stringMethod · 0.90
test_no_escape_neededMethod · 0.90
test_escaped_charsMethod · 0.90
test_listsMethod · 0.90
test_numberMethod · 0.90
test_booleansMethod · 0.90
test_nullMethod · 0.90
test_dateMethod · 0.90
test_datetimeMethod · 0.90
test_literalMethod · 0.90
test_likeMethod · 0.90
test_invalidMethod · 0.90

Calls 1

SoqlFormatterClass · 0.85

Tested by 12

test_plain_stringMethod · 0.72
test_no_escape_neededMethod · 0.72
test_escaped_charsMethod · 0.72
test_listsMethod · 0.72
test_numberMethod · 0.72
test_booleansMethod · 0.72
test_nullMethod · 0.72
test_dateMethod · 0.72
test_datetimeMethod · 0.72
test_literalMethod · 0.72
test_likeMethod · 0.72
test_invalidMethod · 0.72