PostgreSQL.validate_column_names

PostgreSQL.validate_column_names(table_name, schema_name=None, column_names=None)[source]

Validate column names for a query statement.

Parameters:
  • table_name (str) – Name of the table.

  • schema_name (str | None) – Name of the schema; defaults to None.

  • column_names (str | list | tuple | None) – Column name(s) for a dataframe.

Returns:

Validated column names formatted for a PostgreSQL query statement.

Return type:

str

See also