MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / extract_references

Function extract_references

common/common.py:57–60  ·  view source on GitHub ↗
(sql)

Source from the content-addressed store, hash-verified

55
56
57def extract_references(sql):
58 pattern = r"REFERENCES\s+(\w+)\s+\((\w+)\)"
59 matches = re.findall(pattern, sql)
60 return matches
61
62
63def extract_label(text):

Calls

no outgoing calls

Tested by

no test coverage detected