MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / columns_to_string

Function columns_to_string

web/pgadmin/tools/import_export/__init__.py:159–172  ·  view source on GitHub ↗

This function create the columns list as a string

(columns, driver, conn)

Source from the content-addressed store, hash-verified

157
158
159def columns_to_string(columns, driver, conn):
160 """
161 This function create the columns list as a string
162 """
163 cols = None
164 for col in columns:
165 if cols:
166 cols += ', '
167 else:
168 cols = '('
169 cols += driver.qtIdent(conn, col)
170 cols += ')'
171
172 return cols
173
174
175def _get_force_quote_column_list(data, driver, conn):

Callers 2

Calls 1

qtIdentMethod · 0.80

Tested by

no test coverage detected