aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/clickhouse-connect/clickhouse_connect/cc_sqlalchemy/sql/preparer.py
blob: a31b3e7af6db1ff13eca16c21e60325a5d5cba20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
from sqlalchemy.sql.compiler import IdentifierPreparer

from clickhouse_connect.driver.query import quote_identifier


class ChIdentifierPreparer(IdentifierPreparer):

    quote_identifier = staticmethod(quote_identifier)

    def _requires_quotes(self, _value):
        return True