MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / CastDB

Class CastDB

utils/utils.py:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 return hashlib.md5(text.encode()).hexdigest()
150
151class CastDB:
152 def cast_column(column_name, data_type):
153 if data_type not in ["character","text", "character varying"]:
154 return f"{column_name}::varchar(255)"
155 else:
156 return column_name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected