MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / comment_sql

Function comment_sql

crates/sqltest/build_standard.py:34–38  ·  view source on GitHub ↗
(sql: str)

Source from the content-addressed store, hash-verified

32
33
34def comment_sql(sql: str):
35 new = ""
36 for x in sql.split("\n"):
37 new = new + "# " + x + "\n"
38 return new
39
40# Patch the cases that are not supported or need some adjustments to run
41def fix_sql(old_sql: str):

Callers 1

fix_sqlFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…