Edit on GitHub

sqlmesh.core.engine_adapter.databricks

1from __future__ import annotations
2
3from sqlmesh.core.engine_adapter.spark import SparkEngineAdapter
4
5
6class DatabricksSparkSessionEngineAdapter(SparkEngineAdapter):
7    DIALECT = "databricks"
class DatabricksSparkSessionEngineAdapter(sqlmesh.core.engine_adapter.spark.SparkEngineAdapter):
7class DatabricksSparkSessionEngineAdapter(SparkEngineAdapter):
8    DIALECT = "databricks"

Base class wrapping a Database API compliant connection.

The EngineAdapter is an easily-subclassable interface that interacts with the underlying engine and data store.

Arguments:
  • connection_factory: a callable which produces a new Database API-compliant connection on every call.
  • dialect: The dialect with which this adapter is associated.
  • multithreaded: Indicates whether this adapter will be used by more than one thread.