MCPcopy Create free account
hub / github.com/ElementsProject/lightning / execute

Method execute

contrib/pyln-testing/pyln/testing/db.py:107–110  ·  view source on GitHub ↗

Execute a single statement with bound params. Placeholders: '%s

(self, query: str, params: tuple = ())

Source from the content-addressed store, hash-verified

105 return res
106
107 def execute(self, query: str, params: tuple = ()) -> None:
108 """Execute a single statement with bound params. Placeholders: '%s'"""
109 with self.conn, self.conn.cursor() as cur:
110 cur.execute(query, params)
111
112 def executemany(self, query: str, seq_of_params: list[tuple]) -> None:
113 """Batch execute with bound params. Placeholders: '%s'"""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected