ExArrow. ADBC. ConnectionBehaviour behaviour
(ex_arrow v0.6.0)
View Source
Behaviour for ADBC Connection implementations. Used with Mox in tests.
Summary
Callbacks
@callback get_objects(connection :: ExArrow.ADBC.Connection.t(), opts :: keyword()) :: {:ok, ExArrow.Stream.t()} | {:error, term()}
@callback get_table_schema( connection :: ExArrow.ADBC.Connection.t(), catalog :: String.t() | nil, db_schema :: String.t() | nil, table_name :: String.t() ) :: {:ok, ExArrow.Schema.t()} | {:error, term()}
@callback get_table_types(connection :: ExArrow.ADBC.Connection.t()) :: {:ok, ExArrow.Stream.t()} | {:error, term()}
@callback open(database :: ExArrow.ADBC.Database.t()) :: {:ok, ExArrow.ADBC.Connection.t()} | {:error, term()}