MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / visit_array

Method visit_array

lib/sqlalchemy/dialects/postgresql/base.py:2095–2098  ·  view source on GitHub ↗
(self, element, **kw)

Source from the content-addressed store, hash-verified

2093 }"""
2094
2095 def visit_array(self, element, **kw):
2096 if not element.clauses and not element.type.item_type._isnull:
2097 return "ARRAY[]::%s" % element.type.compile(self.dialect)
2098 return "ARRAY[%s]" % self.visit_clauselist(element, **kw)
2099
2100 def visit_slice(self, element, **kw):
2101 return "%s:%s" % (

Callers

nothing calls this directly

Calls 2

compileMethod · 0.45
visit_clauselistMethod · 0.45

Tested by

no test coverage detected