class_docstr: Extends the AdapterBackedSqlClient with the DDL methods necessary for test configuration and execution.
class_docstr_tok: ["Extends","the","AdapterBackedSqlClient","with","the","DDL","methods","necessary","for","test","configuration","and","execution","."]
docstr: Escape single quotes in string-like values for create_table_from_dataframe.
  
  This is necessary because Databricks uses backslash as its escape character.
  We don't bother with the exhaustive switch here because we expect most engines
  to fit into the default single quote condition.
docstr_tok: ["Escape","single","quotes","in","string-like","values","for","create_table_from_dataframe",".","This","is","necessary","because","Databricks","uses","backslash","as","its","escape","character",".","We","do","n't","bother","with","the","exhaustive","switch","here","because","we","expect","most","engines","to","fit","into","the","default","single","quote","condition","."]
code: def _quote_escape_value(self, value: str) -> str:
      """Escape single quotes in string-like values for create_table_from_dataframe.
  
      This is necessary because Databricks uses backslash as its escape character.
      We don't bother with the exhaustive switch here because we expect most engines
      to fit into the default single quote condition.
      """
      if (
          self.sql_engine_type is SqlEngine.DATABRICKS
          or self.sql_engine_type is SqlEngine.BIGQUERY
      ):
          return value.replace("'", "\\'")
  
      return value.replace("'", "''")
  
file_path: metricflow/metricflow/test/fixtures/sql_clients/adapter_backed_ddl_client.py
imports: from __future__ import annotations
  import logging
  import time
  from typing import Optional
  import pandas
  from metricflow.cli.dbt_connectors.adapter_backed_client import AdapterBackedSqlClient
  from metricflow.dataflow.sql_table import SqlTable
  from metricflow.protocols.sql_client import SqlEngine
label_desc: Use image node_id 3 for calling the AdapterBackedDDLSqlClient obj's underlying member method code with example usage: obj._quote_escape_value(value) and returns: value, value